Order discount
Quick start template - Complete order discount
Last updated
Quick start template - Complete order discount
Last updated
With Function Junction, you can easily create special campaigns by rewarding customers for reaching a specific total in the cart. Discounts can be based on a set amount or percentage.
The Order Discount template applies a discount after the subtotal calculation of all items in the cart:
if the customer spends $200 or more on Skincare products, they will receive $25 off their total order.
The customer sees their discount in the subtotal area of the cart.
For the trigger, we've used one condition. If the cart subtotal is greater or equal to $200, execute the action. In the action, the function is checking if the items in the cart belong to the Skincare collection. If so, then the fixed total discount is applied:
Start by choosing the Product discount template from the Home screen:
Or, from the Templates folder:
Name your product discount campaign. The name will help you identify the campaign in your main list of functions. You can easily toggle campaigns on and off from there.
With Function Junction, you can build custom triggers to activate your function. Use the dropdown options to build the tigger condition:
In the Skincare promotion example, the cart subtotal needs to be $200 or more. We'll apply additional rules in the Actions section.
Function Junction will perform an action based on the trigger requirement. Customize the campaign's reward or action here.
In this example, the customer is rewarded with $25 off the order total if the products are from the Skincare collection.
Under Action, use the Add a condition option:
In the first condition dropdown, choose Collection:
For the second action condition, use is any:
For the last condition dropdown, choose the collection. We've used the collection Skincare. Multiple collections can be selected.
The last step is the action reward (then
statement). The customer receives a fixed total discount of $25 if the above trigger and action conditions are obtained:
Add an optional message about your campaign in the Offer message box:
This message is displayed after the subtotal in the cart:
After saving the function, you can return to the main Functions screen to activate and test the function.
Use the Publish toggle to activate your function or to turn off and use at a later time: