Tag orders based on the order discount amount
If you'd like to tag orders based on whether the Order Discount Amount is:
- Greater than
- Greater than or equal to
- Less than
- Less than or equal to
- Equal to
...a certain amount, then our Order Discount Amount criteria can do just that.
The Order Discount Amount is the monetary amount that has been deducted from the order when a discount code has been applied.
How to use the criteria
To create a workflow using this criteria, click on the Create New Workflow button from the main Workflows view:
Click the Add criteria to my workflow button:
The Order Discount Amount criteria can be found within the Transaction category in the Select criteria pop-up window:
Click the Use in your workflow button to select this criteria.
Popular use case:
For illustration purposes, let's say that we'd like to tag any order where the order discount amount is greater than 0. This will allow us to highlight ANY order where a discount code has been applied that has reduced the total amount of the order.
Select Greater than from the available options:
Enter 0 as the value.
Choose the name of the tag you'd like to see on all orders that match this workflow and enter it into the Add tags when the workflow matches section. In this example we have used the tag Discount Applied:
Click on the Add fixed tag button.
It's worth giving your workflow a name to help you identify it at a later date, so add a workflow name in the New Workflow section, check the summary of your workflow and if happy, either Test your workflow against an existing order order or hit Save Workflow:
Any new order will now be checked to see if it has an Order Discount Amount of Greater than 0. If it does, it will be tagged with the name of the fixed tag that you have selected.
This criteria option will work when Backdating your orders.
The Order Discount Amount value can not currently be applied to the order as a Dynamic Tag, however, you can apply the discount code used in the order as a tag if one was used: