Class prdd_process
Frontend single product page processes.
Author: Tyche Softwares
Since: 1.0
Located at prdd-process.php
Methods summary
public static
|
#
prdd_before_add_to_cart( )
Hide Add to Cart button and Quantity field on single product page on frontend. |
public static
|
#
prdd_price_display_special_price( )
Adds a span to display the delivery charges on the Product page. |
public static
|
#
prdd_after_add_to_cart( )
Adds delivery fields on the frontend product page as per the settings selected when Enable Delivery Date is checked. |
public static
array
|
#
prdd_localize_process_script( integer $post_id )
Localize and includes the js files on frontend product page. |
public static
array
|
#
prdd_get_additional_product_data( integer $post_id )
Returns the hidden variables array on the frontend single product page. |
public static
|
|
public static
|
#
prdd_get_time_lockout( )
Display time slot availability message if the product is not available on Add to Cart button click. |
public static
|
#
prdd_get_date_lockout( )
Display delivery date availability message if the product is not available on Add to Cart button click. |
public static
|
#
prdd_check_for_time_slot( )
Display the timeslots for the selected date on the frontend page when Enable time slot is enabled. |
public static
string
|
#
get_time_slot( string $current_date, integer $post_id )
This function prepares the time slots string to be displayed. |
public static
|
#
prdd_get_selected_variation_id( integer $product_id, array $post_data )
This function is used to fetch the variation id of selected attribute on the front end. |