function upddate

This commit is contained in:
magepeopleteam 2022-11-28 05:15:16 +00:00
parent d4b3c2d493
commit 8676f992ee
1 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ if (!function_exists('mep_get_event_reg_btn')) {
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array(); $mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
$total_seat = apply_filters('mep_event_total_seat_counts', mep_event_total_seat($post_id, 'total'), $post_id); $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); $total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat($post_id, 'resv'), $post_id);
$recurring = get_post_meta($post_id, 'mep_enable_recurring', true) ? get_post_meta($post_id, 'mep_enable_recurring', true) : 'no';
// $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 = ''; $upcoming_date = $recurring == 'no' ? '' : $_upcoming_date;
$total_sold = mep_get_event_total_seat_left($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 = $total_seat - ($total_sold + $total_resv);
// $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date); // $total_left = mep_get_event_total_seat_left($post_id, $upcoming_date);