From 50983464f9ac9d22270156fdc78dcd09a703f038 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Mon, 7 Nov 2022 07:13:48 +0000 Subject: [PATCH] function update --- inc/template-prts/event_add_cart.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/template-prts/event_add_cart.php b/inc/template-prts/event_add_cart.php index f7c9f02..35af837 100755 --- a/inc/template-prts/event_add_cart.php +++ b/inc/template-prts/event_add_cart.php @@ -52,7 +52,8 @@ if (!function_exists('mep_get_event_reg_btn')) { $total_seat = apply_filters('mep_event_total_seat_counts', mep_event_total_seat($post_id, 'total'), $post_id); $total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat($post_id, 'resv'), $post_id); - $upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : ''; + // $upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : ''; + $upcoming_date = ''; $total_sold = mep_get_event_total_seat_left($post_id, $upcoming_date); $total_left = $total_seat - ($total_sold + $total_resv); // $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date); @@ -240,7 +241,8 @@ if (!function_exists('mep_get_event_reg_btn_list')) { $total_seat = mep_event_total_seat(get_the_id(), 'total'); $total_resv = mep_event_total_seat(get_the_id(), 'resv'); - $upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : ''; + // $upcoming_date = !empty(mep_get_event_upcoming_date($post_id)) ? mep_get_event_upcoming_date($post_id) : ''; + $upcoming_date = ''; $total_sold = mep_get_event_total_seat_left($post_id, $upcoming_date); $total_left = $total_seat - ($total_sold + $total_resv); // $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date);