Add to Cart with 0 (zero) Tickets selected

Home Forums Ticket Products Event Tickets Plus Add to Cart with 0 (zero) Tickets selected

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1245878
    Olaf
    Participant

    We just got started with Events and Tickets plugins (w/ WooCommerce behind), so I still might be missing something:

    The default for the number of selected tickets (in the ticket order form) is apparently zero. This is basically fine, so that the customer has to make a decision here. But: with “zero” left in that field, the “Add to cart” button is already enabled, which would lead to an empty cart page, which appears to be confusing for some of our testers.

    These confused tester only see the ticket description and the “add to cart” button – and then end up @nil 🙂

    Can the default be set to “1”?

    Thanks,
    Olaf Monien

    #1246653
    Cliff
    Member

    Hi, Olaf.

    This might be what you’re looking for:

    https://gist.github.com/cliffordp/80b33455779b74ec49f6ea3033cb47bf

    Please let me know how this goes for you.

    #1247862
    Hildegard
    Participant

    Hi
    This code does not work with me, but I have this of your support and this works.
    function tribe_events_alter_tickets_default_quantity() {
    wp_enqueue_script( ‘jquery’ );
    ?>
    <style>
    tr.tribe-tickets-meta-row {
    display: table-row !important;
    }
    </style>
    <script>
    jQuery(document).ready( function () {
    jQuery( ‘.single-tribe_events input.text’ ).val( 1 );
    });
    </script>
    <?php
    }
    add_action( ‘wp_head’, ‘tribe_events_alter_tickets_default_quantity’ );
    But if I have 2 different tickets and the customer chooses one go both tickets to the shopping cart. Better the button is locked at Zero.
    Regards

    #1248004
    Cliff
    Member

    Hildegard, I’m glad you got something working for your needs. You are correct the snippet I shared does not support more than one ticket per event of the same type (RSVP and WooCommerce, for example).

    Olaf, since this is your thread, please let me know how things go for you.

    #1248212
    Hildegard
    Participant

    hello,

    But if I have 2 different tickets and the customer chooses one go both tickets to the shopping cart. Better the button is locked at Zero.What we can to ?

    Regards

    #1248487
    Cliff
    Member

    Hildegard, please create your own separate thread and include a link to one of your events.

    Olaf, please let me know how you’re getting along.

    #1259608
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Add to Cart with 0 (zero) Tickets selected’ is closed to new replies.