Product discount
Learn about the quick start template for discounting products based on conditions.
Build campaigns by rewarding customers for items added to the cart. You can discount items in the cart by a monetary amount or percentage.
The Product discount template applies a discount to each individual item in the cart that qualifies for a discount.
In this section
Product discount example
In this Product discount function example, the store Phenomena is rewarding customers with 50% off each item, if the cart subtotal is greater than $50.
Result:
The customer receives the discounted amount for each individual item in the cart with a custom message:

In this example, they've added one trigger condition. The cart subtotal must be over $50 to execute the function's action. If this condition is met, the action discounts each item by the percent value:

Setting up a product discount
Step 1 of 4: Campaign name
From the Function Junction dashboard, under Quick start templates, click Product Discount.
Under Function name, give your discount a unique name so you can identify it later.
Step 2 of 4: Function trigger
Set up the conditions that customers need to meet to get the discount.
Criteria for this example should be based on: cart subtotal.
Optional: Click Add a condition to add an additional condition, if you want customers to meet more than one.
Click Next.
Step 3 of 4: Function action
Set up the action (the discount) that is taken when the conditions you set are met.
For this example, the action should be: Percentage discount per item.
Fill in the second text box with the number representing the discount amount you want to set up, then click Next. In this example, the discount here is 50%.
Optional: Under Filter, add a filter. You can choose to set the discount for only specific products. This can be based on: product/variant, product tag, collection, vendor, type, or on sale. Each filter condition you can choose has specific rules that you need to set up.
When you're done, click Next.
Step 4 of 4: Discount details
Under Discount type, select if you want the discount to be Automatic or With Discount Code. In this example, the discount applies automatically.
Automatic: Under Discount message, if you select Yes, then enter the discount message in the field provided below.
With Discount Code: Enter the discount code that you want customers to enter at checkout.
Under Combinations, if you want this discount to be combined with other discounts, then click Yes, and check which types of discounts that you want it to be combinable with.
When you're done, click Publish.
When your discount is published, if you want to advertise it, then you can publish a widget to your store.
If you added a Discount message, then it appears in the cart.

If left blank, the Campaign Name is added to the cart message.
Last updated