Class bkap_cart
Class for all the operations when Cart is created or modified i.e. Add to cart or Cart update
Package: BKAP\Cart
Author: Tyche Softwares
Since: 1.7.0
Todo: Remove unnecessary global variable $wpdb
Todo: add description where $wpdb has been used and remove if needed
Located at cart.php
Author: Tyche Softwares
Since: 1.7.0
Todo: Remove unnecessary global variable $wpdb
Todo: add description where $wpdb has been used and remove if needed
Located at cart.php
Methods summary
public static
mixed
|
#
bkap_add_cart_item( mixed $cart_item )
This function adjust the extra prices for the product with the price calculated from booking plugin. |
public static
mixed
|
#
bkap_add_cart_item_data( mixed $cart_item_meta, string|integer $product_id )
This function adds the booking details of the product when add to cart button is clicked. |
public static
mixed
|
#
bkap_get_cart_item_from_session( mixed $cart_item, mixed $values )
This function adjust the prices calculated from the plugin in the cart session. |
public static
mixed
|
#
bkap_get_item_data_booking( mixed $other_data, mixed $cart_item )
This function displays the Booking details on cart page, checkout page in cart table |
public static
array
|
#
bkap_woo_cart_widget_subtotal( array $fragments )
This function modifies the product price in WooCommerce Cart Widget |