Home › Forums › Ticket Products › Event Tickets Plus › Sending tickets after buying and process them
- This topic has 6 replies, 2 voices, and was last updated 11 years, 6 months ago by
Brian.
-
AuthorPosts
-
October 12, 2014 at 4:59 pm #805720
ferny182
ParticipantHello,
I’m trying to achieve something that is not a feature right now in your plugin, but I think it should be. In our business process, whenever a user buys a ticket for an event, we would like the order to be processed and hence send already the tickets to the user, so we don’t get emails asking “if everything was fine, because my tickets are not in my email” and so on.I’ve obviously searched before asking, and I’ve found this similar thread:
Nonetheless, it’s not the same we want to achieve, since we also want it to be processed after buying, because there’s not shipment or any other action to do. How could it be done? I guess with some filters, but I’m not sure which one and you for sure should know way better.
Thank you so much for your help with this awesome plugin. 🙂
October 13, 2014 at 8:14 am #807549Brian
MemberI can help you out with getting the email with tickets to send on purchase.
This process is run through the WoooCommerce Order System and the tickets are not sent until an order is marked complete.
There is a snippet that WooCommerce Provides that will do that automatically:
http://docs.woothemes.com/document/automatically-complete-orders/
That snippet should change this process:
tickets ordered->order marked processing->admin marks order complete->tickets sent
to this:
tickets ordered->order marked complete->tickets sent
Let me know if that is what you are looking for or you would like some more help related to this.
Thanks
October 13, 2014 at 10:12 am #807856ferny182
ParticipantHello, Brian,
Thank you so much for the fast response. It’s almost what we need, but there’s is a problem: “Auto Complete all WooCommerce orders”. We would like to auto complete just the tickets from the events, not the rest of the products we have. How can we restrain this? Any flag or something?
Thanks once again.
October 13, 2014 at 1:41 pm #808247Brian
MemberI am afraid we do not have any coding to give you.
However, I did find this article and tested the coding and it set my order to complete, but it will do that if it finds any virtual product in the order.
http://www.skyverge.com/blog/how-to-set-woocommerce-virtual-order-status-to-complete-after-payment/
You may have to do some testing to get it to work how you would like, but it worked for me without changes including testing on a regular product and not marking the order complete.
October 13, 2014 at 2:17 pm #808340ferny182
ParticipantI see, but I’m not sure if it would work with all of our products.
Is there any existing filter where I can add an action after a ticket purchase? I guess I can also check all the products of an order and see if all of them are belonging to a ticket product. Is there any flag for this in a product?
I can work on it and post the solution here, for those interested.
Thanks again!
October 14, 2014 at 7:33 am #810198Brian
MemberI think my answers below get you closer to what you are looking for:
Is there any existing filter where I can add an action after a ticket purchase?
We do not add any hooks it would be the same action as any purchase in WooCommerce, we do not modify the purchase process in WooCommerce.
I guess I can also check all the products of an order and see if all of them are belonging to a ticket product. Is there any flag for this in a product?
All the Tickets are attached the the Ticket Product Category so that could be used as the flag.
Does that help?
November 5, 2014 at 4:58 pm #863055Brian
MemberSince there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Sending tickets after buying and process them’ is closed to new replies.
