Shopify Function Product Discount Template
Quick start template - Discount items in the cart based on conditions
Last updated
Quick start template - Discount items in the cart based on conditions
Last updated
Easily build campaigns by rewarding customers for items added to the cart. Function Junction can discount items in the cart by an amount or percentage.
The Product discount template applies a discount to each individual item in the cart that qualifies for a discount:
In this Product Discount function, we're rewarding the customer with 50% off each item, if the cart subtotal is greater than $50.
The customer will see the discounted amount for each individual item in the cart with a custom message:
In this example, we've added one trigger condition. The cart subtotal must be over $50 to execute the action. If true, the action will discount each item by the percent value:
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.
Campaign names must be unique. These names will also appear in the Shopify Admin under Discounts:
With Function Junction, you can build custom triggers to activate your function. Use the dropdown options to build the tigger condition:
Complete the condition for your campaign's requirements:
Tip: You can add additional conditions for more complex situations.
Use the "Add a condition" option for additional conditions
Optional: Additional conditions can be combined with AND, OR options:
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 50% off on each item in the cart based on the trigger requirement:
Optional fixed discount: If a fixed discount is chosen, a fixed amount is discounted off each item:
Add an optional message about your campaign in the Offer message box:
The Offer message will be appended to the reward value in the cart:
If left blank, the Campaign Name is added to the cart message.
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: