Home › Forums › Ticket Products › Event Tickets Plus › Tickets beeing sent out before payment is received
- This topic has 9 replies, 2 voices, and was last updated 8 years, 11 months ago by
Ingo Storl.
-
AuthorPosts
-
March 17, 2017 at 7:25 am #1255788
Ingo Storl
ParticipantHi 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
IngoMarch 20, 2017 at 2:19 pm #1256885Andras
KeymasterHello 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:
Check your settings there and let me know if that helps you fix this.
Cheers,
AndrasApril 3, 2017 at 6:36 am #1263352Ingo Storl
ParticipantHi 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
April 4, 2017 at 2:39 pm #1264418Andras
KeymasterHallo Ingo,
I checked my settings and it looks like this:
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,
AndrasApril 5, 2017 at 4:15 am #1264809Ingo Storl
ParticipantThis reply is private.
-
This reply was modified 9 years ago by
Ingo Storl. Reason: private
April 9, 2017 at 9:45 am #1267330Andras
KeymasterThis reply is private.
April 25, 2017 at 3:34 am #1273939Ingo Storl
ParticipantHi 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
April 27, 2017 at 2:18 pm #1275451Andras
KeymasterHi 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,
AndrasMay 19, 2017 at 9:35 am #1286361Support Droid
KeymasterHey 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 -
This reply was modified 9 years ago by
-
AuthorPosts
- The topic ‘Tickets beeing sent out before payment is received’ is closed to new replies.


