Class bkap_validation
Class for Handling Validation on Product, Cart and Checkout page
Methods summary
public static
string
|
#
bkap_get_validate_add_cart_item( string $passed, integer $product_id, integer $qty )
This functions validates the Availability for the selected date and timeslots. |
public static
boolean
|
#
bkap_get_bundle_item_validations( string|integer $product_id, WC_Product $product )
This functions Validate Bundle Products |
public static
|
#
bkap_validate_overlap_time_cart( integer $product_id, array $post, string $check_in_date, string $from_time_slot, string $to_time_slot )
This function checks the overlapping timeslot for the selected date and timeslots when the product is added to cart. |
public static
Array
|
#
bkap_get_quantity( integer $post_id, integer $bundle_child_qty = '' )
This function checks the availabilty for the selected date and timeslots when the product is added to cart. If availability is less then selected it prevents product from being added to the cart and displays an error message. |
public static
|
#
bkap_quantity_check( )
This function checks availability for date and time slot on the cart page when quantity on cart page is changed. |
public static
|
#
remove_product_from_cart( )
This function will remove the product from cart when date and/or time is passed. |