Export orders based on delivery date

Delivery plugins use order meta field with name “Delivery Date” or “delivery_date” (or similar field).

If you want to export orders to deliver them tomorrow, you have to do these actions

1. Open section “Filter by order”, select “delivery” field in 1st dropdown, select LIKE, type {tomorrow} and press (+)

2. Open section “Misc Settings” and add following PHP code.

3. You must ensure if date format for {tomorrow} match to your dates!

We use date mask  (more about formats –  https://www.php.net/manual/en/function.date.php )

Some common masks + output for 17th April 2020.

Y-m-d  will output 2020-04-17

m/d/y  will output 04/17/20

j F, Y   will output 17 April, 2020

Default mask is “Y-m-d”, probably, you have to EDIT it.

Skip to toolbar