function update

This commit is contained in:
magepeopleteam 2023-09-22 04:06:10 +00:00
parent 67b70dfc65
commit be6f616520
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@
if ($qty_t_type == 'dropdown') { ?>
<select name="option_qty[]" id="eventpxtp_<?php echo esc_attr($count); ?>" <?php if ($total_left <= 0) { ?> style='display: none!important;' <?php } ?> class='extra-qty-box etp'>
<?php
if($total_min_seat > 0){
?>
<option value="0" <?php echo esc_attr('Selected'); ?>>
<?php _e('0 Ticket:', 'mage-eventpress'); ?>
</option>
<?php
}
for ($i = $total_min_seat; $i <= $total_left; $i++) { ?>
<option value="<?php echo esc_attr($i); ?>" <?php if ($i == $default_quantity) { echo esc_attr('Selected'); } ?>><?php echo esc_html($i); ?>
<?php echo mep_get_option('mep_ticket_text', 'label_setting_sec', __('Ticket:', 'mage-eventpress')); ?>