From f05a92c605e37aabf021be8eed069797a1030547 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Mon, 25 Oct 2021 12:07:28 +0000 Subject: [PATCH] hook added --- inc/mep_extra_price.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/mep_extra_price.php b/inc/mep_extra_price.php index e31b634..cd48d50 100644 --- a/inc/mep_extra_price.php +++ b/inc/mep_extra_price.php @@ -263,7 +263,8 @@ function mep_checkout_validation($posted) $ticket_qty = $ticket['ticket_qty']; $event_date_txt = get_mep_datetime($ticket['event_date'],'date-time-text'); $total_sold = mep_ticket_type_sold($event_id,$type,$event_date); - $available_seat = $total_seat - ($total_resv + $total_sold); + $total_seats_count = apply_filters('mep_event_total_seat_count_checkout', $total_seat, $event_id,$event_date); + $available_seat = $total_seats_count - ($total_resv + $total_sold); } if($ticket_qty > $available_seat){