Class woocommerce_prdd_lite
Class for delivery date setting at back end and allowing to select the delivery date on the product page. It displays the delivery date on Cart, Checkout, Order received page and WooCommerce->Orders page.
Since: 1.0
Located at product-delivery-date-for-woocommerce-lite.php
Methods summary
public
|
|
public
|
|
public
|
#
prdd_lite_update_db_check( )
This function is used to updating the version number in the database when the plugin is updated. |
public
|
|
public
|
|
public
|
#
prdd_lite_process_box( integer $post_id, WP_Post $post )
This function updates the delivery settings for each product in the wp_postmeta table of the database. It will be called when update/publish button clicked on admin side. |
public
|
#
prdd_lite_meta_box( )
This function displays the settings for the product in the Product Delivery Date meta box on the admin product page. |
public
|
#
prdd_lite_product_duplicate( integer $new_id, WP_Post $post )
This function duplicates the delivery settings of the original product to the new product. |
public
|
|
public
|
|
public
|
#
prdd_lite_after_add_to_cart( )
This function add the Delivery Date fields on the frontend product page as per the settings selected when Enable Delivery Date is enabled. |
public
array
|
#
prdd_lite_add_cart_item_data( integer $cart_item_meta, $product_id )
When "Add to cart" button is clicked on product page, this function returns the cart_item_meta with the delivery details of the product. |
public
array
|
#
prdd_lite_get_item_data( array $other_data, $cart_item )
This function displays the Delivery details on cart page, checkout page. |
public
|
#
prdd_lite_order_item_meta( integer $item_meta, array $cart_item )
This function updates the database for the delivery details and adds delivery fields on the Order Received page & WooCommerce->Orders page when an order is placed for WooCommerce version greater than 2.0. |
public
integer
|