Class bkap_checkout
Class for all the operations related to order completion process
Methods summary
public static
array
|
#
bkap_update_lockout( integer $order_id, integer $post_id, integer $parent_id, integer $quantity, array $booking_data, $called_from = '' )
Updated the availability/bookings left for a product when an order is placed. |
public static
|
#
bkap_update_booking_order_history( integer $order_id, integer $booking_id, string $query = 'insert' )
Update Booking Order History Table |
public static
|
#
bkap_create_booking_post( integer $item_id, integer $product_id, array $qty, integer $booking_details, string $variation_id = 0, $status = 'confirmed' )
Creates & returns a booking post meta record array to be inserted in post meta. |
public static
|
|
public static
|
#
bkap_order_item_meta( integer $item_meta, mixed $cart_item )
This function updates the database for the booking details and adds booking fields on the Order Received page, Woocommerce->Orders when an order is placed for Woocommerce version breater than 2.0. |
public static
|
#
bkap_update_global_lockout( integer $post_id, mixed $quantity, array $details, array $booking_data )
This function updates the database resords for the booking which has globally same timeslots |