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

  1. From the Function Junction dashboard, under Quick start templates, click Order Discount.

  2. Under Function name, give your discount a unique name so you can identify it later.

Note:

Function names (also called campaign names) need to be unique. Once created, they appear in the Discounts section of the Shopify admin.

Step 2 of 4: Function trigger

In this example, the customer needs to add $200 or more to their cart to get the discount.

  1. Set up the conditions that customers need to meet to get the discount. In this example, the function needs one condition:

    1. If cart subtotal is greater than or equal to 200

  2. Click Next.

Step 3 of 4: Function action

  1. 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.

    1. collection is any and then select the skincare collection.

    2. then fixed total discount is 25

Step 4 of 4: Discount details

  1. Under Discount type, select if you want the discount to be Automatic or With Discount Code. In this example, the discount applies automatically.

    1. Automatic: Under Discount message, if you select Yes, then enter the discount message in the field provided below.

    2. With Discount Code: Enter the discount code that you want customers to enter at checkout.

  2. 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.

  3. 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