Export orders based on delivery date

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

Note – Local Pickup Plus – code at bottom

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 operator =, type {tomorrow}, press Enter 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.


Warning! Local Pickup Plus plugin uses different way to remember shipping date . So open section “Misc Settings” and add following PHP code.