Sending tickets after buying and process them

Home Forums Ticket Products Event Tickets Plus Sending tickets after buying and process them

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #805720
    ferny182
    Participant

    Hello,
    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:

    Sending the Tickets Email on Processing Status

    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. 🙂

    #807549
    Brian
    Member

    I 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

    #807856
    ferny182
    Participant

    Hello, 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.

    #808247
    Brian
    Member

    I 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.

    #808340
    ferny182
    Participant

    I 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!

    #810198
    Brian
    Member

    I 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?

    #863055
    Brian
    Member

    Since 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! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Sending tickets after buying and process them’ is closed to new replies.