Add to cart does not work

Home Forums Ticket Products Event Tickets Plus Add to cart does not work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1614691
    rodriguise
    Participant

    This just suddenly stopped working. We verified we are selecting a quantity of 1, clicking add to cart does not add the event ticket to the cart.

    #1614775
    rodriguise
    Participant

    Looking at “plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php” function process_front_end_tickets_form:

    if ( empty( $_REQUEST['wootickets_process'] ) || intval( $_REQUEST['wootickets_process'] ) !== 1 || empty( $_POST['product_id'] ) ) {
                            return;
                    }

    $_REQUEST['wootickets_process'] is always empty.

    Array
    (
        [product_id] => Array
            (
                [0] => 980
            )
    
        [quantity_980] => 1
        [tribe-tickets-meta] => Array
            (
                [980] => Array
                    (
                        [1] => Array
                            (
                                [emergency-contact-name] => test
                                [emergency-contact-phone] => 7755015616
                                [emergency-contact-email-address] => [email protected]
                                [relationship-status] => Engaged
                            )
    
                    )
    
            )
    
        [action] => xoo_wsc_add_to_cart
    )
    Array
    (
        [wc-ajax] => xoo_wsc_add_to_cart
        [product_id] => Array
            (
                [0] => 980
            )
    
        [quantity_980] => 1
        [tribe-tickets-meta] => Array
            (
                [980] => Array
                    (
                        [1] => Array
                            (
                                [emergency-contact-name] => test
                                [emergency-contact-phone] => 7755015616
                                [emergency-contact-email-address] => [email protected]
                                [relationship-status] => Engaged
                            )
    
                    )
    
            )
    
        [action] => xoo_wsc_add_to_cart
        [woocommerce-login-nonce] => 
        [_wpnonce] => 
    )
    #1614777
    rodriguise
    Participant

    I had to reinstall Woocommerce and remove the side-cart plugin which for some reason worked before.

    #1615587
    Courtney
    Member

    Hey Robert

    Thank you for that update. I’m glad you’ve got it working now. I’ll close out this thread for now, but do let us know if you run into any future support needs.

    Thanks
    Courtney 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add to cart does not work’ is closed to new replies.