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