Class prdd_special_delivery_price
Weekday delivery charges class.
Package: Product-Delivery-Date-Pro-for-WooCommerce\Delivery-Charges
Author: Tyche Softwares
Since: 1.0
Located at prdd-special-delivery-price.php
Author: Tyche Softwares
Since: 1.0
Located at prdd-special-delivery-price.php
Methods summary
public
|
|
public
|
#
prdd_special_delivery_price_tab( integer|string $product_id )
Adds Delivery charges tab on edit product page in admin. |
public
|
#
prdd_load_ajax_special_delivery_price_block( )
This function is used to load ajax functions required by weekday block delivery. |
public
|
#
prdd_special_delivery_price_show_field_settings( integer|string $product_id )
Adds the Add Delivery charges fields on the Delivery Charges tab. |
public
|
|
public
|
|
public
|
|
public
string
|
|
public
array
|
#
special_delivery_add_to_cart( array $cart_arr, integer|string $product_id, integer|string $variation_id, array $cart_item_meta )
Add delivery charges to the cart item when add to cart button is clicked |
public static
string
|
#
prdd_get_special_delivery_price( integer|string $product_id, string $delivery_date, array $date_array )
Returns delivery charges added for the selected delivery date for the product. |
public
array
|
#
get_special_delivery_cart_item_from_session( array $cart_item, array $values )
This function adjust the prices calculated from the plugin in the cart session. |
public
array
|
#
add_cart_item( array $cart_item )
This function adjust the extra prices for the product with the price calculated from the plugin. |
public
array
|
#
get_item_data( array $other_data, array $cart_item )
This function adds the special pricing data on the Cart and Checkout page. |
public
|
#
order_item_meta( array $values, resource $order )
Add Delivery Charges as order item meta when order is placed. |