Stock Level When No Ticket Email Is Sent

Home Forums Ticket Products Event Tickets Plus Stock Level When No Ticket Email Is Sent

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1125813
    Nick
    Participant

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

    #1125818
    Nick
    Participant

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

    #1125820
    Nick
    Participant

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

    #1126252
    Josh
    Participant

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

    #1126269
    Nick
    Participant
    add_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.

    #1126296
    Nick
    Participant

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

    #1127099
    Nick
    Participant

    That seemed to have been the problem.

    Thread is resolved.

    #1127116
    Josh
    Participant

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Stock Level When No Ticket Email Is Sent’ is closed to new replies.