Class bkap_cancel_order
Class for listing the bookings on respective pages
Methods summary
public static
WC_Order
|
#
bkap_get_add_cancel_button( WC_Order $order, mixed $action )
This function will add cancel order button on the MY ACCOUNT page. For cancelling the order. |
public static
|
#
bkap_trash_order( string|integer $post_id )
This function frees up the booking dates and/or time for all the items in an order when the order is trashed without cancelling or refunding it. |
public static
|
|
public static
|
#
bkap_woocommerce_restore_bookings( string|integer $order_id, string $old_status, string $new_status )
Restore bookings once an Order is untrashed |
public static
array
|
#
bkap_create_gcal_object( string|integer $order_id, array $item_details, WC_Order $order )
This function creates an event details array which contains all the details required to insert an event in Google Calendar |
public static
|
#
bkap_woocommerce_cancel_order( string|integer $order_id )
This function deletes booking for the products in order when the order is cancelled or refunded. |
public static
|
#
bkap_reallot_item( array $item_value, integer $booking_id, integer $order_id, integer $bkap_qty = null )
Re-allots the booking date and/or time for each item in the order |
public static
|
#
reallot_global_timeslot( string $start_date, string $from_time, string $to_time, mixed $booking_settings, mixed $details, integer $qty )
Reallot the global timeslot when a booking is trashed |
public static
|
#
bkap_reallocate_booking_when_order_status_failed_to_processing( array $args = array() )
This will reallocate the bookings when order status changed from failed to processing,completed and on-hold. |