Hi,
Currently, we do not provide any shortcode from our Order Delivery Date for WooCommerce(Lite version) plugin.
However, you can use ‘orddd_lite_get_order_delivery_date()’ function which will return the delivery date for an order which is present under the orddd-lite-common.php of our plugin folder.
To get the delivery date for an order, you need to pass the order id of an order to this function as a parameter.
Also, let us know which plugin you are using for the invoice. As our lite version plugin is compatible with 1) WooCommerce PDF Invoices & Packing Slips 2) WooCommerce Print Invoice & Delivery Note and 3) WooCommerce Print Invoice/Packing list plugin.
Regards,
Komal Maru.
Thread Starter
mnop
(@mnop)
Booster for Woocommerce is the plugin im using.
Could you provide a bit more of a step by step explanation because i dont want to mess up the .php file.
Hi,
Thank you for providing us the plugin name which you are using on your site for the Invoice. 🙂
Please follow the below steps to get the Delivery Date of an order.
1) First you need to fetch the order id from the plugin( in your case: Booster for WooCommerce plugin).
2) Then you need to pass the order id to the orddd_lite_get_order_delivery_date function. For example:
$delivery_date_formatted = orddd_lite_common::orddd_lite_get_order_delivery_date( $order_id );
3) Then you can use the $delivery_date_formatted variable and place it at your required place(in your case inside tbody section).
For further information about the function, you can visit our PRO plugin’s hooks & filters documentation, the difference is just that the function name and class name are different. I am attaching the link for your reference: https://www.tychesoftwares.com/order-delivery-date-pro-hooks-and-filters-for-woocommerce/
Please let me know if you have any further queries.
Regards,
Komal Maru.