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
  • ✨Function Types
    • Creating and publishing
    • Discounts
      • Conditional discounts
      • Shipping discounts
      • Tiered discounts
      • Bundle discounts
      • Bundle fixed price
    • BOGO (Buy One, Get One)
  • FAQ
    • Frequently asked questions
  • 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 Discount by Customer Tag Template

Quick start template - Special discounts for tagged customers

PreviousShopify Function Product Discount TemplateNextShipping discount

Last updated 7 months ago

Function Junction simplifies discounting for customers with a specific tag.

Example use case:

Logged-in customers with a wholesale tag qualify for volume discounts on their order. Items added to the cart for wholesale customers are discounted by 15% off the entire order.

Result:

The wholesale customer will see their total discount in the subtotal area of the cart before checkout:

In this example, there are two tiggers. We've used the AND statement which requires that both conditions are true in order to execute the action. For the trigger conditions, we've chosen when a customer who has the "wholesale" tag and adds more than 4 items to the cart (five items required to qualify), the action will apply a 15% discount to the entire order:

How to build

Start by choosing the Order discount by customer tag template from the Home screen:

Or, from the Templates folder:

Campaign name

Name your discount by customer tag campaign. The name will help you identify the campaign in your main list of functions:

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

Example when viewing from Functions folder:

Trigger

With Function Junction, you can build custom triggers to activate your function. In the wholesale customer example, we've used two conditions:

  1. If the customer tag is wholesale

  2. and the cart items quantity is greater than 4

This requires the customer to be logged-in, has been tagged with wholesale, and is purchasing at least four items to qualify for the 15% discount.

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 15% off all items in the cart:

The logged-in customer is tagged with wholesale and is ordering more than four items.

Total discount The discount can be applied to multiple items in the cart. Therefore, the total discount saved is shown in the total calculation area.

Discount details

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

The Offer message will be used in the cart totals area as shown above. The campaign name will be used if the Offer message is left blank.

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:

You can have multiple function active at the same time. Use the trigger options to ensure the correct campaigns are used for each of your scenarios.

Home screen templates
List of templates from the Templates folder
Wholesale discount applied to all items in order