These Automation conditions can be used to automatically process orders based on their various date and date/time fields relative to today's date.
There are four date fields that can be used within rule conditions:
- Delivery date
- Invoiced date
- Payment due date
- Tax date
You can specify whether the chosen date should be 'greater than or equal to' or 'less than or equal to' the current date. Enter the number of days from the current date using negative values for earlier dates or positive values for later dates.
In addition to the date fields, there are three date/time fields:
- Created date
- Placed on date
- Updated date
Greater than or less than
Choose the number of minutes, hours or days from the current date and time using negative values for earlier dates or positive values for later dates.
The term 'greater than' means a date/time that is later than the date it is being compared to, in other words, it is later than 'now'.
If you set a condition that the order's created date must be greater than or equal to 30 minutes, this would mean the order must have been created 30 minutes from now, or that it must have been created in the future. This doesn't make much sense! As such for these conditions, we recommend using negative values.
For example, if you specify the created date must not be greater than -30 minutes, this means the order must not have been created within the last half an hour. Therefore, only orders created more than 30 minutes ago will meet the conditions.