Hi,
i don’t know if there is the easiest way:
i change in src\views\tickets\rsvp.php
<input type="number" class="tribe-ticket-quantity" min="0" max="<? echo php esc_attr( $ticket->remaining())?>" name="quantity_<?php echo absint( $ticket->ID ); ?>" value="0" <?php disabled( $must_login ); ?> >
in
<input type="number" class="tribe-ticket-quantity" min="0" max="<?php if(esc_attr( $ticket->remaining())>1){echo 1;} ?>" name="quantity_<?php echo absint( $ticket->ID ); ?>" value="0" <?php disabled( $must_login ); ?> >
Edit: with this method you limit 1 ticket per person
That was fast!
Thanks!! 🙂
I wish there was a way to even hide the quantity option, so the user would see the form directly, without having to type a number.
I know I can set value=”1″ in the code and hide the corresponding field using css. But the form won’t show up, it’s only displayed when the user manually type the number.
Howdy fndpena,
Another option might be to use a hidden input for that field. <input type=”hidden” … /> instead of type=”number” . Then it won’t matter if the field is seen or not, it’s value will always be set on submit.
– Brook