function update

This commit is contained in:
magepeopleteam 2022-09-15 05:35:57 +00:00
parent b8941b4bbe
commit a2c3397031
1 changed files with 3 additions and 7 deletions

View File

@ -737,10 +737,12 @@ function mep_check_attendee_exist_before_create($order_id, $event_id, $date ='')
} }
} }
do_action('mep_after_event_booking',$order_id,$order->get_status()); do_action('mep_after_event_booking',$order_id,$order->get_status());
if(!class_exists('WC_Xendit_CC')){
$woocommerce->cart->empty_cart(); $woocommerce->cart->empty_cart();
} }
} }
} }
}
if (!function_exists('mep_delete_attandee_of_an_order')) { if (!function_exists('mep_delete_attandee_of_an_order')) {
function mep_delete_attandee_of_an_order($order_id, $event_id) { function mep_delete_attandee_of_an_order($order_id, $event_id) {
@ -5144,12 +5146,6 @@ jQuery(document).on('change', '.mep_global_time_format', function () {
return false; return false;
}); });
</script> </script>
<?php <?php
} }