function update

This commit is contained in:
magepeopleteam 2022-02-23 02:14:20 +00:00
parent 72c76b5309
commit 6a8ae37af5
3 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if (!function_exists('mep_ev_extra_serv')) {
$count = 1;
$mep_events_extra_prices = get_post_meta($post_id, 'mep_events_extra_prices', true) ? get_post_meta($post_id, 'mep_events_extra_prices', true) : array();
$event_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
ob_start();
if (sizeof($mep_events_extra_prices) > 0) {

View File

@ -15,6 +15,7 @@ if (!function_exists('mep_output_add_to_cart_custom_fields')) {
$total_sold = mep_ticket_sold($post_id);
$total_left = $total_seat - ($total_sold + $total_resv);
$total_left = apply_filters('mep_event_total_seat_count', $total_left, $post_id);
if ($total_left > 0) {
do_action('mep_event_ticket_types', $post_id,$ticket_type_label,$select_date_label);

View File

@ -29,9 +29,12 @@
?>
<tr>
<td align="Left"><?php echo esc_html($service_name); ?>
<?php if ($mep_available_seat == 'on') { ?>
<div class="xtra-item-left"><?php echo esc_html($ext_left); ?>
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : esc_html__('Left:', 'mage-eventpress'); ?>
</div>
<?php } ?>
<input type="hidden" name='mep_event_start_date_es[]' value='<?php echo esc_attr($event_date); ?>'>
</td>
<td class="mage_text_center">