public static
array
|
#
orddd_remove_delivery_field( array $fields )
Remove Delivery Date & Time fields on the checkout page when delivery not enabled.
Remove Delivery Date & Time fields on the checkout page when delivery not enabled.
Parameters
- $fields
- Checkout page fields
Returns
array Checkout page fields
Since
1.0
Globals
$current_user Current logged-in user
Hook
woocommerce_checkout_fields
|
public static
|
#
orddd_text_block_after_checkout_billing_form( resource $checkout = '' )
Delivery information text message on the checkout page.
Delivery information text message on the checkout page.
Parameters
- $checkout
- Checkout Page Object
Since
6.7
Hook
woocommerce_after_checkout_billing_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
woocommerce_cart_collaterals
|
public static
|
#
orddd_date_after_checkout_billing_form( resource $checkout = "" )
Delivery date field on the checkout page.
Delivery date field on the checkout page.
Parameters
- $checkout
- Checkout Page Object
Since
1.0
Globals
resource $wpdb WordPress object
array $orddd_date_formats Date formats array
resource $post Post object
resource $woocommerce WooCommerce Object
array $orddd_languages Languages array
array $orddd_weekdays Weekdays array
array $orddd_shipping_days Shipping weekdays array
Hook
woocommerce_after_checkout_billing_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
woocommerce_cart_collaterals
|
public static
|
#
orddd_time_slot_after_checkout_billing_form( resource $checkout = "" )
Time slot field on the checkout page
Time slot field on the checkout page
Parameters
- $checkout
- Checkout Page Object
Since
1.0
Globals
resource $woocommerce WooCommerce object
Hook
woocommerce_after_checkout_billing_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
woocommerce_cart_collaterals
|
public static
|
#
orddd_validate_date( )
Validate delivery date field if mandatory
Validate delivery date field if mandatory
Since
1.0
Globals
resource $current_user Object of current logged-in User
Hook
woocommerce_checkout_process
|
public static
|
#
orddd_validate_time_slot( )
Validate Time slot field if mandatory
Validate Time slot field if mandatory
Since
1.0
Globals
resource $current_user Object of current logged-in User
Hook
woocommerce_checkout_process
|
public static
|
#
orddd_add_delivery_date_fee( )
Add Delivery fee on the checkout page
Add Delivery fee on the checkout page
Since
2.6
Globals
resource $woocommerce WooCommerce Object
resource $wpdb WordPress Object
array $orddd_weekdays Weekdays array
Hook
woocommerce_cart_calculate_fees
woocommerce_cart_totals_before_shipping
|
public static
|
#
check_for_time_slot_orddd( )
Add Time slot drop down on select of the date on checkout page
Add Time slot drop down on select of the date on checkout page
Since
2.4
Globals
array $orddd_weekdays Weekdays array
resource $wpdb WordPress Object
Hook
wp_ajax_nopriv_check_for_time_slot_orddd
wp_ajax_check_for_time_slot_orddd
|
public static
|
#
orddd_update_order_meta_delivery_date( integer $order_id )
Add selected delivery date in the post meta
Add selected delivery date in the post meta
Parameters
Since
1.0
Globals
resource $wpdb WordPress Object
resource $woocommerce WooCommerce Object
Hook
woocommerce_checkout_update_order_meta
|
public static
|
#
orddd_update_order_meta_time_slot( integer $order_id )
Add selected time slot in the post meta
Add selected time slot in the post meta
Parameters
Since
1.0
Globals
resource $wpdb WordPress Object
resource $woocommerce WooCommerce Object
Hook
woocommerce_checkout_update_order_meta
|
public static
|
#
orddd_add_delivery_date_to_order_page_woo( resource $order )
Display delivery date on Order Recieved Page
Display delivery date on Order Recieved Page
Parameters
Since
1.0
Globals
array $orddd_date_formats Date formats array
Hook
woocommerce_order_details_after_order_table
|
public static
|
#
orddd_add_time_slot_to_order_page_woo( resource $order )
Display Time slot on Order Recieved Page
Display Time slot on Order Recieved Page
Parameters
Since
1.0
Hook
woocommerce_order_details_after_order_table
|
public static
array
|
#
orddd_my_account_my_orders_columns( array $columns )
Add Delivery Date field column on My Account Orders Page
Add Delivery Date field column on My Account Orders Page
Parameters
- $columns
- My Account page columns array
Returns
array My Account page columns array with Delivery date & Time column added
Since
5.7
Hook
woocommerce_my_account_my_orders_columns
|
public static
|
#
orddd_my_account_my_orders_query( resource $order )
Add Delivery Date field column data on My Account Orders Page
Add Delivery Date field column data on My Account Orders Page
Parameters
Since
5.7
Globals
array $orddd_date_formats Date formats array
resource $post WordPress Post Object
Hook
woocommerce_my_account_my_orders_column_order-delivery-date
|
public static
|
#
orddd_update_delivery_date( )
Update Delivery Date & Time in the database when edited from My Account page
Update Delivery Date & Time in the database when edited from My Account page
Since
5.7
Hook
wp_ajax_nopriv_orddd_update_delivery_date
wp_ajax_orddd_update_delivery_date
|
public static
array
|
#
orddd_add_time_slot_to_order_woo_deprecated( array $keys )
Display Time slot in Customer notification email for the WooCommerce version below 2.3
Display Time slot in Customer notification email for the WooCommerce version below 2.3
Parameters
- $keys
- Array of custom fields to be added in the email
Returns
array Array of custom fields to be added in the email
Since
1.0
Hook
woocommerce_email_order_meta_keys
|
public static
array
|
#
orddd_add_delivery_date_to_order_woo_deprecated( array $keys )
Display Delivery Date in Customer notification email for the WooCommerce version below 2.3
Display Delivery Date in Customer notification email for the WooCommerce version below 2.3
Parameters
- $keys
- Array of custom fields to be added in the email
Returns
array Array of custom fields to be added in the email
Since
1.0
Hook
woocommerce_email_order_meta_keys
|
public static
|
#
orddd_add_time_slot_to_order_woo_new( array $fields, boolean $sent_to_admin, resource $order )
Display Time slot in Customer notification email
Display Time slot in Customer notification email
Parameters
- $fields
- Fields to add in customer notification email
- $sent_to_admin
- Whether to send emails to admin or not
- $order
- Order Object
Returns
$fields Fields to add in customer notification email
Since
1.0
Hook
woocommerce_email_order_meta_fields
|
public static
|
#
orddd_add_delivery_date_to_order_woo_new( array $fields, boolean $sent_to_admin, resource $order )
Display Delivery Date in Customer notification email
Display Delivery Date in Customer notification email
Parameters
- $fields
- Fields to add in customer notification email
- $sent_to_admin
- Whether to send emails to admin or not
- $order
- Order Object
Returns
$fields Fields to add in customer notification email
Since
1.0
Hook
woocommerce_email_order_meta_fields
|
public static
|
#
orddd_update_lockout_days( string $delivery_date )
Update number of orders placed for Delivery date in options table
Update number of orders placed for Delivery date in options table
Parameters
- $delivery_date
- Selected Delivery Date
Since
1.0
Globals
resource $wpdb WordPress Object
|
public static
|
#
orddd_update_time_slot( string $timeslt, string $del )
Update number of order for Delivery date and Time slot in options table
Update number of order for Delivery date and Time slot in options table
Parameters
- $timeslt
- Selected time slot on the checkout page
- $del
- Selected Delivery date on the checkout page
Since
1.0
Globals
resource $wpdb WordPress Object
|
public static
|
#
orddd_availability_check( )
Check the availability of the selected delivery date & time
Check the availability of the selected delivery date & time
Since
1.0
Globals
resource $wpdb WordPress Object
resource $current_user Current logged in user object
Hook
woocommerce_checkout_process
|
public static
|
#
orddd_validate_available_time( )
Validates the delivery date while placing the order whether the date is still avialable or not.
Validates the delivery date while placing the order whether the date is still avialable or not.
Since
4.5
Globals
resource $wpdb WordPress Object
resource $current_user Current logged in user object
Hook
woocommerce_checkout_process
|
public static
boolean
|
#
woo_product_has_delivery( )
Check if the product has delivery enabled or not
Check if the product has delivery enabled or not
Returns
boolean True if delivery is enabled, else false
Since
2.8.6
Globals
resource $woocommerce WooCommerce Object
|
public static
|
#
orddd_update_delivery_session( )
Updates the Common delivery settings for different product categories added to the cart on Shipping method change.
Updates the Common delivery settings for different product categories added to the cart on Shipping method change.
Since
2.8.6
Hook
wp_ajax_nopriv_orddd_update_delivery_session
wp_ajax_orddd_update_delivery_session
|
public static
|
#
show_hidden_fields( )
Add hidden fields on the Cart page.
Add hidden fields on the Cart page.
Since
7.0
Hook
woocommerce_after_cart_table
|