Tickets beeing sent out before payment is received

Home Forums Ticket Products Event Tickets Plus Tickets beeing sent out before payment is received

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1255788
    Ingo Storl
    Participant

    Hi there, I have the following problem:

    Our tickets are being sent out immediately after the order, no matter the order status. I have removed all snippets and also unchecked the box in WooCommerce that allows for downloadable products to be accessed directly after payment, according to this thread https://theeventscalendar.com/support/forums/topic/tickets-are-being-sent-before-payment/

    Brook gave us a snippet a while back that did automate the email sending:

    // Send Ticket Email on Payment received, rather than order complete – Brook
    function tribe_woocommerce_payment_complete_send_email( $order_id ) {
    do_action( ‘wootickets-send-tickets-email’, $order_id );
    }
    add_action( ‘woocommerce_payment_complete’, ‘tribe_woocommerce_payment_complete_send_email’ );

    and we also had a plugin that created a custom order status which we called “zahlungerhalte644″ in order to include that with paypal we used this snippet:

    add_action( ‘paypal_ipn_for_wordpress_payment_status_completed’, ‘update_wc_order_status’, 10, 1 );

    function update_wc_order_status( $posted )
    {
    $order_id = isset( $posted[‘invoice’] ) ? $posted[‘invoice’] : ”;
    if ( !empty( $order_id ) )
    {
    $order = new WC_Order( $order_id );
    $order->update_status( ‘zahlungerhalte644’ );
    }
    }

    Now like I said both snippets are deleted and the checkbox is unchecked but the emails get sent out right after order, how can that be? how do we change that?

    I have disabled all plugins went back to default theme, no change there. Would appreciate your help!! Thanks in advance!!

    Regards
    Ingo

    #1256885
    Andras
    Keymaster

    Hello Ingo, grüss dich,

    Thanks for using our plugins and welcome back!

    I’m sorry about your issues with the ticket sending.

    Recently we have introduced an option where you can choose when the tickets should be sent. You can find it under Events > Settings > Tickets tab > WooCommerce support section and looks like this:

    Cloudup 2wpcd0toiom

    Check your settings there and let me know if that helps you fix this.

    Cheers,
    Andras

     

     

    #1263352
    Ingo Storl
    Participant

    Hi András, thanks for your reply.

    So I have changed the settings that you mentioned, didn’t realize that was now included.

    In any case, the custom order status “zahlung erhalten” which translates to payments received doesn’t trigger the email. If I manually change the status in backend to “zahlung erhalten” nothing happens, only when order is completed “fertiggestellt” it sends out the emails, even though the settings are correct. See screenshot.

    Having more issues with the ticketing and mixed carts (tickets and books in one cart) but I will post that in a separate thread one at a time.

    Would appreciate some assistance with the order status and emails for now. what am I doing wrong? Thanks

    #1264418
    Andras
    Keymaster

    Hallo Ingo,

    I checked my settings and it looks like this:

    Cloudup kigk4olqxi4

     

    It looks like the “Zahlung erhalten” status is a custom status in your setup and that could cause the issue.

    Can you confirm that is a custom status? If yes, please let me know how that was created / what are it’s settings. I will then try to re-create and test it.

    Thanks,
    Andras

    #1264809
    Ingo Storl
    Participant

    This reply is private.

    • This reply was modified 9 years ago by Ingo Storl. Reason: private
    #1267330
    Andras
    Keymaster

    This reply is private.

    #1273939
    Ingo Storl
    Participant

    Hi Andras,

    have you heard back from your team yet? We are pretty close to launching the new site and need the custom order status to work with our ticketing system.

    Can you please let me know.

    Thanks

    #1275451
    Andras
    Keymaster

    Hi Ingo,

    I’m sorry, I was traveling and was without internet for a couple of days, and then your thread went below my radar. My apologies for this.

    Indeed I had a discussion on this with the team. Out of the box we support the built-in WooCommerce order statuses. Now if the plugin developer (Yith in this case) did their best, then it should work with their order statuses as well. You can test this via calling wc_get_order_statuses(), and if the custom order status is among the results, then it should work. If it’s not there, then the order statuses created by that plugin will not work.

    Let me know if this helps.

    Cheers,
    Andras

    #1286361
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Tickets beeing sent out before payment is received’ is closed to new replies.