Class bkap_edit_bookings_class
Class for allowing Bookings to be edited from Cart and Checkout Page
Package: BKAP\Reschedule
Author: Tyche Softwares
Since: 4.1.0
Located at class-bkap-edit-bookings.php
Author: Tyche Softwares
Since: 4.1.0
Located at class-bkap-edit-bookings.php
Methods summary
public
|
|
public static
|
#
bkap_load_template( array $booking_details, WC_Product $cart_product, integer|string $product_id, array $localized_array, string $bkap_cart_item_key, integer|string $variation_id, integer|string $additional_addon_data = array() )
Load modal template for booking box |
public
string
|
#
bkap_add_edit_link( string $product_title, WC_Product $cart_item, string $cart_item_key )
Add Edit Link on Cart and Checkout page |
public
|
#
bkap_add_reschedule_link( srting $item_id, WC_Order_Item $item, WC_Order $order )
Add Edit Booking link on My Account Page |
public static
|
#
bkap_enqueue_edit_bookings_scripts( string $bkap_cart_item_key, string $plugin_version_number, array $localized_array )
Enqueue JS files for edit booking |
public static
|
|
public
|
#
bkap_update_edited_bookings( )
Ajax call back when confirm bookings is clicked on either Cart, Checkout or My Account Page |
public static
|
#
bkap_update_item_bookings( string $order_id, string $item_id, string $old_start, string $old_end, string $old_time, string $product_id, array $booking_data, string $booking_id, integer $quantity, $old_resource, $page = '' )
Used for updating the booking details for a particular Item ID |
public
|
#
bkap_add_reschedule_order_note( string|integer $order_id, array $old_bookings, array $new_bookings, $item_name, $additional_note )
Add Order Notes when bookings are rescheduled |
public static
array
|
#
bkap_update_bundled_cartitems( array $session_cart, array $bundled_items, array $booking_details )
Update bundled items added to cart. |
public
|
|
public
|
#
bkap_allow_bookings_callback( mixed $args )
Call back for displaying settings option for Cart/Checkout page |
public
|
#
bkap_allow_reschedulable_callback( mixed $args )
Call back for displaying settings option for My Account page |
public
|
#
bkap_reschedulable_days_callback( mixed $args )
Call back for displaying settings option for rescheduling period |