Downloadable = yes

Home Forums Ticket Products Event Tickets Plus Downloadable = yes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1006168
    Michael
    Participant

    I noticed in my testing that the ticket was not immediately emailed to the customer after ordering (via Stripe sandbox), and I started to wonder why. It would make more sense to automatically send the ticket.

    It looks like the ticket email is sent when the order status changes to “Completed” which is good, but by default the order status after a ticket purchase is set to “Processing.” This means that for the ticket email to be sent to the customer, the Order status needs to be manually changed to Completed.

    A little research revealed that WooCommerce will automatically set the order status to Completed when purchasing products that are both Virtual and Downloadable. Right now WooTickets sets Virtual to “yes” but Downloadable to “no.” I fixed this by changing line 397 in src/Tribe/Main.php from:
    update_post_meta( $ticket->ID, '_downloadable', 'no' );

    to:
    update_post_meta( $ticket->ID, '_downloadable', 'yes' );

    This was how I fixed it. Is there a better way? Could this be an option, or perhaps set by default? If not, I will have to change Main.php every time I update the plugin. Thoughts?

    Thanks!

    #1006344
    Josh
    Participant

    Hey Michael,

    Thanks for reaching out to us!

    That would definitely be one way of approaching this one. However, since our tickets aren’t technically a downloadable product we probably will be leaving that portion set to “no” so when you update you’ll lose that customization.

    Woo does have another way for automatically setting all orders to “complete” automatically. You can check out this snippet to see how that is done.

    Let me know if this helps.

    Thanks!

    #1011155
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Downloadable = yes’ is closed to new replies.