hook added

This commit is contained in:
magepeopleteam 2021-10-25 12:07:28 +00:00
parent 8753841f21
commit f05a92c605
1 changed files with 2 additions and 1 deletions

View File

@ -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){