Discount methods can now specify multiple actions to take when the rules for the method pass. Each action can have its own set of rules that must also pass for the action to take place.
Creating a Multi-Action Discount A discount can be created by navigating to the admin console > marketing > discounts. Once on the discounts page click the new button to bring up the new discount overlay:
After filling out the basic information for the discount and saving, an action can be added by clicking the New Action button:
The new action menu will have a number of new options to specify: Active (checkbox): Only actions that are set to active will be applied on the live store. Strict (checkbox): Actions marked as strict will only be applied if all of their rules pass. Also, any (target) in cart rules will only pass if all items in the cart match the rule. Exclusive (checkbox): Only one exclusive action will be applied per discount method. The first exclusive action (according to its sort order) encountered that passes its rules will be applied, all others will be ignored. Sort Order (whole number): Actions for a discount method are evaluated and applied in the order of their sort.
After saving the action, the option to add action rules will now be available. Adding action rules works the same as adding discount method rules. It is important to note that unlike discount methods, actions do not have to have any rules specified to be considered active.
In the setup shown below, we have a discount method with a single coupon rule. There are also two actions that subtract a different percentage from the total when the coupon is entered. The 10% action has its own rule specifying that the total must be greater than $25 dollars, while the 15% discount has a rule specifying that the total must be over $50.
Since both of the actions are marked as exclusive, only one action will apply. The actions will be evaluated in the ascending order of their Sort, so in the case of a cart with $55, only 15% will be subtracted.
This discount method can be seen in action in the two shopping carts below, the shopping cart on the left has a total of $40 (only above the 10% action threshold). While the cart on the right has a total of $60, above both 15% and 10% threshold. Because of the exclusivity of the actions, the cart on the left is subtracting 10% from the total while the cart on the right is subtracting 15% from the total.
Please sign in to leave a comment.