What's your biggest current challenge? Have your say in Community Polls along the right column.

Automatic Discounts For Tagged Customers Or Grouped Customers

Automatic Discounts For Tagged Customers Or Grouped Customers

UncleGym
Excursionist
14 0 5

Hi all, 

 

I'm trying to create an automatic free shipping discount for specific customers.

You can select customers with the other discounts but not shipping discounts for some reason. 

I would rather not use an app i might have to?

 

Any help will be most appreciated!  

Replies 10 (10)

JoesIdeas
Shopify Partner
2446 225 662

What if you created a free shipping discount code, and then only showed that code to customers with a certain tag?

 

You would do that by adding some theme code, something like this:

{% if customer.tags contains "Free Shipping" %}
<p>You qualify for free shipping. Use this code: FREESHIPWOO</p>
{% endif %}
• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tactics
UncleGym
Excursionist
14 0 5

Hi Joe, i have made a tag called SHIPPINGSAVER and I have a discount code called SHIPPINGSAVER. I pasted this

 

{% if customer.tags contains "SHIPPINGSAVER" %}
<p>You qualify for free shipping. Use this code: SHIPPINGSAVER</p>
{% endif %} 

 

at the bottom of base.css but nothing has changed. Do you think i have written it wrong or put the code in the wrong place?

tobebuilds
Shopify Partner
483 34 129

That is a Liquid code snippet. It doesn't belong in a CSS file.

 

CSS files are for defining the visual appearance of your website.

 

Place it in a .liquid file instead.

 

Founder, Regios Discounts app (4.9 stars, 72 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer
JoesIdeas
Shopify Partner
2446 225 662

The snippet is HTML and Liquid, so doesn't have any use in a CSS file... When you see {% %}, that's Liquid. It's worth learning it if you're editing your theme yourself: https://shopify.dev/docs/api/liquid

 

You would put this type of snippet wherever you want it to show. For example, if you want it to show under the add to cart button, you'd find where the add to cart code is in your theme (if you're not sure, start with the product.liquid template, then read the code and follow the snippets, sections, etc to arrive at the add to cart button code... I've seen it before in a Snippet called product-form.liquid, but depends what theme you're using).

 

This article has some basics about editing your theme and where to find code: How to Safely Edit Your Shopify Theme

 

Might be worth trying the app @tobebuilds mentioned if you're doing this often and the coding gets too time intensive and the app does what you want. Apps cost money but if they save you time (that can be used to grow the business) or money from hiring out it's usually a good investment.

 

Another idea I just thought of, you could include a free shipping discount to customers in their order email (or review ask email, or after they leave a review, etc).

 

When I ran a store we used Judge.me reviews app, then Bulk Discount Codes app to generate discount codes, and had Judge.me send a unique discount code to customers post order. Has multiple benefits: you give the customer value + incentivize the next sale.

 

Hope those options of doing with code or app helps.

• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tactics
tobebuilds
Shopify Partner
483 34 129

This option has some drawbacks:

  • It will only display to customers who are already logged in. If a customer waits until checkout to enter their email, they won't learn about the discount.
  • Unless you are on Shopify Plus, you cannot add this code to the checkout. (And checkout.liquid is deprecated)
  • It's a discount code, not an automatic discount, so customers still have to remember to type it in.
  • Discount codes can get leaked, especially if there's no server-side validation that the customer is truly eligible for free shipping.
Founder, Regios Discounts app (4.9 stars, 72 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer

tobebuilds
Shopify Partner
483 34 129

Hi UncleGym,

 

Though you said you would rather not use an app, if you'd like to avoid headaches and discount code leaks, as well as saving some of your own time, I recommend trying our app, Regios Automatic Discounts (4.9 stars, Built for Shopify).

 

Here's a screenshot of how you could easily create an automatic free shipping discount for customers with a specific tag:

 

tobebuilds_0-1718553553514.png

 

If you have any questions about this, just reply, and I'll be happy to help.

 

Best,

Tobe

Founder, Regios Discounts app (4.9 stars, 72 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer

JaviExpress
Shopify Partner
183 16 26

Another workaround, you create a customer-specific discount and push it with a script: here. Again, it only works if the customers log in before checkout.

Customer Accounts Concierge
All-in-One Customer Portal: Profile, Orders, Loyalty, Referral, Wishlist, Custom Forms, Social Login
UncleGym
Excursionist
14 0 5

This seems the best way to do it without having to code or spend money but the problem is, it wont let me create a shipping discount for specific customers. It works with percentage discounts etc but not shipping discounts for some reason? 

topshop
Shopify Partner
167 15 19

@UncleGym , can you confirm if you're able to see the "specific customers" option for non-shipping discounts, for ex. an Automatic Product discount?

 

I believe the option to select specific customers is not available for any type of Automatic discounts. I don't see the customers option even for a Product discount if "Automatic" is selected.

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion

bantikyan
Shopify Partner
19 1 2

Hello, 

Our app Stack Discounts Ninja will do exactly what you need.

 

For basic requirements you need, after installation, enable the app.

 

Then you need to create an Automatic Campaign, and select customer tags:

bantikyan_0-1733388224961.png

 

Add one or more discounts under this campaign.

 

Thanks.

Hovhannes
Customer Support Agent for Stack Discounts Ninja
- Like this comment to let me know my answer was helpful
- Mark my answer as an Accepted Solution if my answer solved your issue!