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

Shopify Function Product Discount Template

Quick start template - Discount items in the cart based on conditions

PreviousFunction Junction OverviewNextShopify Function Discount by Customer Tag Template

Last updated 7 months ago

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:

Example use case:

In this Product Discount function, we're rewarding the customer with 50% off each item, if the cart subtotal is greater than $50.

Result:

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:

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 unique names for campaigns

Campaign names must be unique. These names will also appear in the 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:

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:

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

Discount details

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.

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:

Customize the message that's displayed to your customers
Home screen templates
List of templates from the Templates folder