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 9 (9)

JoesIdeas
Shopify Partner
2338 211 618

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 (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Figure Out Why You're Not Getting Sales
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
324 19 91

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.

 

JoesIdeas
Shopify Partner
2338 211 618

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 (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Figure Out Why You're Not Getting Sales
tobebuilds
Shopify Partner
324 19 91

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.

tobebuilds
Shopify Partner
324 19 91

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

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
Turn the account page into a beautiful and multifunctional customer portal. Integrate contents, tools, and CRM features from other apps to drive a longer, richer and more personalized customer experience: Profile, Order History, Loyalty, Wishlist, Social Login, Customer Forms.
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
70 5 9

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

Discount Bot: Sitewide Sales - How to Exclude Products from Shopify Discounts: A Step-by-Step Guide
- Instantly create discounts for your entire product catalog with a single discount
- Exclude any products / collections / already on sale items for which the discounts should NOT apply
- Built using Shopify Functions for native performance and feel