Class bkap_variations
Class for Handling Variation Level Lokcout functionalities
Author: Tyche Softwares
Class: bkap_variations
Located at variation-lockout.php
Methods summary
public
|
|
public
|
#
add_variation_fields( integer $loop, array $variation_data, WP_Post $variation )
This function will add the Lockout Field in all variations of the product |
public
|
#
save_variation_fields( integer $variation_id, integer $i )
This function will save the lockout value in the _booking_lockout_field meta key |
public
|
#
validate_multiple_days_product_page( )
The validation on product page for multiple nights based on the variation level lockout. |
public
|
#
validate_single_days_product_page( )
The validation on product page for Single Day based on the variation level lockout. |
public
|
#
validate_date_time_product_page( )
The validation on product page for Date & Time booking based on the variation level lockout. |
public
|
#
validate_multiple_days_cart_page( )
The validation on Cart & Checkout page for Date & Time booking based on the variation level lockout. |
public
|
#
validate_single_days_cart_page( )
The validation on Cart & Checkout page for Single Day booking based on the variation level lockout. |
public
|
#
validate_date_time_cart_page( )
The validation on Cart & Checkout page for Date & Time booking based on the variation level lockout. |
public static
array
|
#
bkap_get_booked_dates_for_variation( integer $product_id, integer $variation_id )
Retuning the lockout and booked dates for the given variation id. |