Changing default Ticket Quantity w/o woocommerce

Home Forums Ticket Products Event Tickets Plus Changing default Ticket Quantity w/o woocommerce

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1116789
    joesrocha
    Participant

    Issue is that we need ticket quantity to be locked to 1.
    I see the documentation on doing this:
    https://theeventscalendar.com/knowledgebase/handling-ticket-quantities/
    I just noticed that this specifies with woocommerce, which we are not using…

    Adding to our child theme and modifying the tickets.php plugin file directly did not change anything for us on front-end.

    woocommerce_quantity_input( array(
    ‘input_name’ => ‘quantity_’ . $ticket->ID,
    ‘input_value’ => 1,
    ‘min_value’ => 0,
    ‘max_value’ => $max_quantity,
    ) );

    Is this a woocommerce exclusion issue?

    Thanks

    #1117017
    Nico
    Member

    Hi there Joe,

    Thanks for reaching out! I can help you here…

    Indeed the article describe how to do with WooCommerce tickets, but I see in your website, you are using RSVP tickets. For this type of tickets other template has to be modified, I’ll describe the steps to achieve this:

    • Copy the template wp-content/plugins/event-tickets/src/views/tickets/rsvp.php
    • Paste a copy of the file in wp-content/themes/your_active_theme/tribe-events/tickets/rsvp.php
    • Edit the file in your theme and change in line 53 max="<?php echo esc_attr( $ticket->remaining() ); ?>" for max="1"

    That should do the trick for you, please let me know if it works for you,

    Have a great weekend,
    Nico

    #1117133
    joesrocha
    Participant

    Worked like a charm, thank you!

    #1117786
    Nico
    Member

    Thanks for confirming Joe, glad to hear about it 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Changing default Ticket Quantity w/o woocommerce’ is closed to new replies.