Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • None
  • Order-Delivery-Date-Lite-for-WooCommerce
    • Admin
      • Delivery-Date-on-Edit-Order-Page
      • Display-Holidays
      • Pro-Notices
      • Settings
      • Welcome-Page
    • Common-Functions
    • Frontend
      • Checkout-Page-Processes
    • Integrate-Delivery-Date

Classes

  • orddd_lite_common

Class orddd_lite_common

Class for the common functions used in the plugin

Package: Order-Delivery-Date-Lite-for-WooCommerce\Common-Functions
Author: Tyche Softwares
Located at orddd-lite-common.php

Methods summary

public static string
# delivery_date_lite_language( string $delivery_date_formatted, string $delivery_date_timestamp )

Return the date with the selected langauge in Appearance tab

Return the date with the selected langauge in Appearance tab

Parameters

$delivery_date_formatted
Default Delivery Date
$delivery_date_timestamp
Delivery Date Timestamp

Returns

string
Translated Delivery Date

Since

1.9

Globals

array $orddd_lite_languages Languages array
array $orddd_lite_languages_locale Locale of all languages array
public static string
# orddd_lite_get_order_delivery_date( integer $order_id )

Return the delivery date selected for the order

Return the delivery date selected for the order

Parameters

$order_id
Order ID

Returns

string
Delivery Date for the order

Since

1.9

Globals

array $orddd_lite_date_formats Date Format array
public static string
# orddd_lite_get_timestamp( string $delivery_date, string $date_format )

Returns timestamp for the selected Delivery date

Returns timestamp for the selected Delivery date

Parameters

$delivery_date
Selected Delivery Date
$date_format
Date Format

Returns

string
Timestamp for the selected delivery date

Since

1.7
public static
# orddd_lite_cancel_delivery_for_trashed( integer $order_id )

Free up the delivery date and time if an order is moved to trashed

Free up the delivery date and time if an order is moved to trashed

Parameters

$order_id
Order ID

Since

2.5

Globals

string typenow

Hook

wp_trash_post
public static
# orddd_lite_cancel_delivery( integer $order_id )

Free up the delivery date and time if an order is cancelled, refunded or failed

Free up the delivery date and time if an order is cancelled, refunded or failed

Parameters

$order_id
Order ID

Since

2.5

Globals

string typenow

Hook

woocommerce_order_status_cancelled
woocommerce_order_status_refunded
woocommerce_order_status_failed
public static string
# orddd_lite_is_delivery_enabled( )

Checks if there is a Virtual product in cart

Checks if there is a Virtual product in cart

Returns

string
yes if virtual product is there in the cart else no

Since

1.7

Globals

resource $woocommerce WooCommerce Object
public static string
# orddd_get_version( )

This function returns the Order Delivery Date Lite plugin version number.

This function returns the Order Delivery Date Lite plugin version number.

Returns

string
Version of the plugin

Since

3.3
public static string
# orddd_get_plugin_url( )

This function returns the plugin url

This function returns the plugin url

Returns

string
Base URL of the plugin

Since

3.3
API documentation generated by ApiGen