Order discount
Learn about the quick start template for order discounts based on conditions.
You can create special campaigns that reward customers for reaching a specific total in the cart. Discounts can be based on a set amount off or percentage off the order.
The Order discount template applies a discount after the subtotal calculation of all items in the cart.
In this section
Order discount example
In this example, if the customer spends $200 or more, then they receive $25 off skincare products.
The result:
The customer sees their discount in the subtotal area of the cart.
In this example, there is one condition. If the cart subtotal is greater or equal to $200, the discount is triggered. In the action, the function checks if the items in the cart belong to the Skincare collection. If so, then the fixed total discount is applied.

Setting up an order discount
Step 1 of 4: Campaign name
From the Function Junction dashboard, under Quick start templates, click Order Discount.
Under Function name, give your discount a unique name so you can identify it later.
Step 2 of 4: Function trigger
In this example, the customer needs to add $200 or more to their cart to get the discount.
Set up the conditions that customers need to meet to get the discount. In this example, the function needs one condition:
If
cart subtotal
is greater than or equal to
200
Click Next.
Step 3 of 4: Function action
Set up the action (the discount) that is taken when the conditions you set are met. In this example, the customer is rewarded with $25 off if the products are from the Skincare collection.
collection
is any
and then select the skincare collection.then
fixed total discount
is
25
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.
Last updated