Why only one Event’s tickets in the cart at a time?

Home Forums Ticket Products Event Tickets Plus Why only one Event’s tickets in the cart at a time?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #943852
    Victoria
    Participant

    For some reason, we can’t add tickets for more than one event to the cart. Every time we add another event ticket to the cart, the previous event’s ticket disappears.

    Ex. Add ticket for Feb 21st event. Cart shows ticket for Feb 21st event. Then we add ticket for Feb 24th evert. Cart only shows ticket for Feb 24th event.

    Is there a setting to allow multiple events in cart or something?

    #943853
    Victoria
    Participant

    Errr…sorry…this should probably be in the WooTickets forum :0

    #943858
    Victoria
    Participant

    This reply is private.

    #943927
    Barry
    Member

    Hi Raymond,

    I’m sorry for the inconvenience: this definitely looks like a failing on our end. If you feel comfortable doing so, can you try adding the following snippet to your theme’s functions.php file and see if that helps in the interim?

    /**
     * Moves the add-to-cart functionality to a later point in the request (ie,
     * after the existing cart contents have been populated).
     */
    function wootix_rehook_add_to_cart() {
    	$wootickets = TribeWooTickets::get_instance();
    	$callback = array( $wootickets, 'process_front_end_tickets_form' );
    
    	// Switch to a later action
    	remove_action( 'wp_loaded', $callback );
    	add_action( 'wp_loaded', $callback, 50 );
    }
    
    // Apply fix if this snippet is running within a (mu-)plugin file
    if ( ! did_action( 'plugins_loaded' ) ) {
    	add_action( 'plugins_loaded', 'wootix_rehook_add_to_cart', 50 );
    }
    // Also apply fix if this snippet is embedded directly in a theme functions.php file
    elseif ( class_exists( 'TribeWooTickets' ) ) {
    	wootix_rehook_add_to_cart();
    }
    #943944
    Victoria
    Participant

    It works! Fast and easy fix. Thanks! 🙂

    I’m guessing this will be fixed in the next release?

    #943973
    Barry
    Member

    Barring any unforeseen problems, yes, we’ll definitely get a substantive fix out as quickly as we can 🙂

     

    #944056
    Barry
    Member

    We have now released WooCommerce Tickets 3.9.2 (it should be visible as an available update with your plugin admin screen shortly) and that ought to address this. Once you’ve updated, please remove the temporary fix.

    Thanks again for drawing this to our attention 🙂

    #944793
    Victoria
    Participant

    Sorry for the lag, but I saw the update when it was released, removed the fix, updated….and it’s working perfectly. Thanks for the fast turnaround!…and great support 🙂

    #945271
    Barry
    Member

    Awesome – glad we could help and our apologies once more for both the bug itself and for the slight lag in acknowledging your feedback (we’re currently on a team retreat and so haven’t had as much time as normal to check in and update threads with customers like yourself).

    In any case, I’ll go ahead and close out this thread but of course if we can help with anything else that might crop up please don’t hesitate to create new threads as needed – thanks again!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Why only one Event’s tickets in the cart at a time?’ is closed to new replies.