Home › Forums › Ticket Products › Event Tickets Plus › Stock Level When No Ticket Email Is Sent
- This topic has 8 replies, 3 voices, and was last updated 9 years, 11 months ago by
Josh.
-
AuthorPosts
-
June 12, 2016 at 7:11 am #1125813
Nick
ParticipantI have one ticket type with a stock of 12 available per event, yet when an order comes through and is payed/completed the stock doesn’t reduce.
I do have the function that prevents the ticket email from being sent.The weird thing is is that it works on my local dev site. The stock reduces.
All plugins up to date / files are the same on local and live.
Any thoughts?
June 12, 2016 at 8:23 am #1125818Nick
ParticipantJust wanted to add more info.
Using stripe.
Did some more tests. I used stripe with the test info on my local site and it reduces the stock and leaves an order note. So stripe is communicating back. But it still doesn’t reduce it on the live site.This may not be your plugins problem. But strange it works on one and not the other.
June 12, 2016 at 8:42 am #1125820Nick
ParticipantOne more with info. Trying to give you as much clarity to the problem.
We also have a store that sells physical products, and those items are correctly getting their stock reduced. So now it makes me think it’s not stripe.
Could it be a problem with them being auto complete/virtual/downloadable products?
May 25th was the last event order in which the stock reduced correctly. I updated the plugin sometime after that. However, like I said before, it all works fine on the local site.
June 13, 2016 at 11:52 am #1126252Josh
ParticipantHey Nick,
Thanks for reaching out to us!
This definitely does sound like a strange issue to be having here.
- Would you mind providing the function that you’re using to prevent the emails from sending?
- Also, does the issue persist if you remove that function?
- Are all the plugins, themes, and settings identical between your local site and your live site?
Thanks!
June 13, 2016 at 12:23 pm #1126269Nick
Participantadd_action( 'init', 'wootickets_stop_sending_email' ); function wootickets_stop_sending_email() { if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) { $woo = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(); remove_filter( 'woocommerce_email_classes', array( $woo, 'add_email_class_to_woocommerce' ) ); add_action( 'woocommerce_email_after_order_table', array( $woo, 'add_tickets_msg_to_email' ) ); } }Yes.
Just double checked your plugin and all the settings for the products and events. Everything looks fine.
Let me know if you want admin credentials. Though, you wouldn’t be able to compare with my local site.
June 13, 2016 at 12:45 pm #1126296Nick
ParticipantThe only other thing I can think of which was probably causing a different error with stripe was only having the checkout force ssl and not the entire site.
I changed that and when another order comes in I will see if that other error is fixed and if it fixes the problem in this ticket.
June 14, 2016 at 6:40 pm #1127099Nick
ParticipantThat seemed to have been the problem.
Thread is resolved.
June 14, 2016 at 8:05 pm #1127116Josh
ParticipantHey Nick,
Awesome! I’m glad you were able to find the root of the issue here!
I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.
Thanks!
-
AuthorPosts
- The topic ‘Stock Level When No Ticket Email Is Sent’ is closed to new replies.
