The seat number doesn’t decrease after bank transfer method
-
Hi,
I’d like to decrease seat number after book if I select bank transfer as a pay method. Now if I choose this method the seat number is still the same – the status for the order is ‘on-hold’. In mep_functions.php file I’ve changed for something like that:if($order->has_status( ‘on-hold’ )) {
//change_attandee_order_status($order_id,’publish’,’trash’,’on-hold’);
//change_attandee_order_status($order_id,’publish’,’publish’,’on-hold’);change_attandee_order_status($order_id,’publish’,’trash’,’completed’);
change_attandee_order_status($order_id,’publish’,’publish’,’completed’);
change_extra_service_status($order_id,’publish’,’trash’,’completed’);
change_extra_service_status($order_id,’publish’,’publish’,’completed’);
do_action(‘mep_wc_order_status_change’,$order_status,$event_id,$order_id);
}It works – the seat number is decreasing after booking but when I receive the payment and change the order status to completed the seat number back to previous number (so someone can still buy tickets).
Can You help me?
- The topic ‘The seat number doesn’t decrease after bank transfer method’ is closed to new replies.