hook added
This commit is contained in:
parent
8753841f21
commit
f05a92c605
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue