zero price issue

This commit is contained in:
magepeopleteam 2021-02-09 06:30:35 +00:00
parent efd24f7381
commit 4ed0c5e5f8
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@
</td> </td>
<td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $field['option_price'])); <td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $field['option_price']));
if ($ext_left > 0) { ?> if ($ext_left > 0) { ?>
<p style="display: none;" class="price_jq"><?php echo $data_price; ?></p> <p style="display: none;" class="price_jq"><?php echo $data_price > 0 ? $data_price : 0; ?></p>
<input type="hidden" name='event_extra_service_name[]' value='<?php echo $field['option_name']; ?>'> <input type="hidden" name='event_extra_service_name[]' value='<?php echo $field['option_name']; ?>'>
<input type="hidden" name='event_extra_service_price[]' value='<?php echo $field['option_price']; ?>'> <input type="hidden" name='event_extra_service_price[]' value='<?php echo $field['option_price']; ?>'>
<?php } ?> <?php } ?>

View File

@ -48,7 +48,7 @@
<?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : _e('Per Ticket Price:', 'mage-eventpress'); ?> <?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : _e('Per Ticket Price:', 'mage-eventpress'); ?>
</span> <strong><?php echo wc_price(mep_get_price_including_tax($post_id,$ticket_price)); ?></strong> </span> <strong><?php echo wc_price(mep_get_price_including_tax($post_id,$ticket_price)); ?></strong>
<?php if ($total_seats > 0) { ?> <?php if ($total_seats > 0) { ?>
<p style="display: none;" class="price_jq"><?php echo $data_price; ?></p> <p style="display: none;" class="price_jq"><?php echo $data_price > 0 ? $data_price : 0; ?></p>
<?php } ?> <?php } ?>
</td> </td>