<select name="tkt-slctr-qty-<?php echo $EVT_ID; ?>[]" id="ticket-selector-tbl-qty-slct-<?php echo $EVT_ID . '-' . $row; ?>" class="ticket-selector-tbl-qty-slct" title="">
<?php
// this ensures that non-required tickets with non-zero MIN QTYs don't HAVE to be purchased
if ( ! $ticket->required() && $min !== 0 ) {
?>
<option value="0"> 0 </option>
<?php }
// offer ticket quantities from the min to the max
for ( $i = $min; $i <= $max; $i++) {
?>
<option value="<?php echo $i; ?>"> <?php echo $i; ?> </option>
<?php } ?>
</select>
<?php
$hidden_input_qty = FALSE;
}
// depending on group reg we need to change the format for qty
if ( $hidden_input_qty ) {
?>
<input type="hidden" name="tkt-slctr-qty-<?php echo $EVT_ID; ?>[]" value="0" />
<?php
}
?>
<input type="hidden" name="tkt-slctr-ticket-id-<?php echo $EVT_ID; ?>[]" value="<?php echo $TKT_ID; ?>" />
-
-
Save lorenzocaum/92dd4db9e1fc159b9a928cbcb58b0fe4 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment