Class prdd_edit_deliveries_class
Class for allowing Deliveries to be edited from Cart and Checkout Page
Package: Product-Delivery-Date-Pro-for-WooCommerce\Edit-Deliveries
Author: Tyche Softwares
Since: 2.4
Located at class-prdd-edit-deliveries.php
Author: Tyche Softwares
Since: 2.4
Located at class-prdd-edit-deliveries.php
Methods summary
public
|
|
public static
|
#
prdd_load_template( array $prdd_settings, WC_Product $cart_product, integer|string $product_id, array $localized_array, string $prdd_cart_item_key, integer|string $variation_id )
Load modal template for delivery box |
public
string
|
#
prdd_add_edit_link( string $product_title, WC_Product $cart_item, string $cart_item_key )
Add Edit Link on Cart and Checkout page |
public
|
#
prdd_add_reschedule_link( srting $item_id, WC_Order_Item $item, WC_Order $order )
Add Edit Delivery link on My Account Page |
public static
|
#
prdd_enqueue_edit_deliveries_scripts( string $prdd_cart_item_key, string $plugin_version_number, array $localized_array )
Enqueue JS files for edit deliveries |
public static
|
|
public
|
#
prdd_update_edited_deliveries( )
Ajax callback when confirm bookings is clicked on either Cart, Checkout or My Account Page. |
public static
integer|string
|
#
prdd_get_difference_amount( string $item_id, resource $item_obj, string $order_id, string $product_id, string $variation_id, resource $product_obj, array $old_deliveries, array $delivery_data )
Returns the different amount for the new selected date and the old delivery date. |
public static
|
#
prdd_update_item_deliveries( string $order_id, string $item_id, string $old_start, string $old_time, string $product_id, string $variation_id, array $delivery_data, string $quantity, integer $quantity,… )
Used for updating the delivery details for a particular Item ID |
public
|
#
prdd_add_reschedule_order_note( string|integer $order_id, array $old_deliveries, array $delivery_data, $item_name, $additional_note )
Add Order Notes when deliveries are rescheduled |
public
|
|
public
|
#
prdd_allow_deliveries_callback( array $args )
Call back for displaying settings option for Cart/Checkout page |
public
|
#
prdd_allow_reschedulable_callback( array $args )
Call back for displaying settings option for My Account page |
public
|
#
prdd_reschedulable_days_callback( array $args )
Call back for displaying settings option for rescheduling period |