• Great ticket system within event calendar, so far so good for a free plugin.

    I will give one more star if you can limit the maximum tickets sold at a time.

    I have a free event with 2000 seats, one user responded to RSVP with 900 seats so that all tickets were out! Please add this function in this free plugin, and I am sure this is a great plugin

Viewing 1 replies (of 1 total)
  • Oh yeah, that’s a great idea! I can totally see how that would earn another star in the review. ??

    While that is not a direct setting in the plugin, you could override the ticket form template and set the max attribute of the numeric select to the number you want to limit sales to in a single purchase.

    We have more information on template overrides here in our Themer’s Guide, but it basically boils down to this:

    • Make a copy of the template. It’s located at /wp-content/plugins/event-tickets/src/views/tickets/rsvp.php
    • Make a new folder in your (child) theme directory called tribe-events
    • Make a new folder in that one called tickets
    • Drop your copied rsvp.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, add your maximum number attribute to the following:

    <input type="number" class="tribe-ticket-quantity" min="0" max="<?php echo esc_attr( $ticket->remaining() ); ?>" name="quantity_<?php echo absint( $ticket->ID ); ?>" value="0" <?php disabled( $must_login ); ?> >

    I hope this helps! Definitely feel free to open a thread in the support forum if you have additional questions and we’d be happy to keep the conversation going on our next pass.

    Thanks!
    Geoff

Viewing 1 replies (of 1 total)
  • The topic ‘Maximum tickets sold at a time’ is closed to new replies.