LogoLogo
  • 👋Function Junction
    • Introduction
    • Why should I use it?
    • Shopify Function Examples with Function Junction
  • Getting Started
    • Shopify Scripts Are Ending: How to Migrate Shopify Scripts to Function Junction
    • Function Junction Overview
  • Templates
    • Shopify Function Product Discount Template
    • Shopify Function Discount by Customer Tag Template
    • Shipping discount
    • Order discount
    • Free shipping to VIP customers
    • Shopify Function Bundle Discount Template
  • FAQ
    • Discount name error
    • How many discount codes can I use automatically
    • How do I request a template
    • Do I need to be a Shopify Plus merchant to use Function Junction?
  • Privacy Policy
Powered by GitBook
On this page
  • How to build
  • Campaign name
  • Trigger
  • Action
  • Discount details
  • Publish
Export as PDF
  1. Templates

Order discount

Quick start template - Complete order discount

PreviousShipping discountNextFree shipping to VIP customers

Last updated 7 months ago

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:

Example use case:

if the customer spends $200 or more on Skincare products, they will receive $25 off their total order.

Result:

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:

How to build

Start by choosing the Product discount template from the Home screen:

Or, from the Templates folder:

Campaign name

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.

Use a unique name for each campaign. Discount functions also appear in your Shopify Admin under Discounts.

Trigger

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.

Action

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.

  1. Under Action, use the Add a condition option:

  1. In the first condition dropdown, choose Collection:

  1. For the second action condition, use is any:

  2. For the last condition dropdown, choose the collection. We've used the collection Skincare. Multiple collections can be selected.

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

Discount details

Add an optional message about your campaign in the Offer message box:

This message is displayed after the subtotal in the cart:

Publish

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:

Discount based on all items in the cart
Home screen templates
List of templates in the Templates folder
Toggle functions from the main Functions folder