FROM CACHE - en_header

Limiting Promo Codes to Customers Without Specific Tags

New Member
1 0 2

Hi - Maybe someone can help me out. I'd like to send out promo codes to people, but not have certain segments able to use it. 

I run a store, which has two sides, retail and wholesale. Customers tagged with "Wholesale" see wholesale pricing and different product selection. Anyone who doesnt have that tag, just sees the regular site. 

The Problem: Promo codes intended for retail consumers are being used by wholesale customers. 

Question: Is there a way to limit certain promo codes to certain segments of customers? IE Customers Tagged "Wholesale" shouldn't be able to use XYZ Promo Code



Replies 6 (6)
Shopify Staff (Retired)
Shopify Staff (Retired)
89 0 26

Hi Austin!

Ana here, from the Shopify guru team. 🙂

You can create discount codes that only apply to specific customers based on a tag, though you won't be able to create discount codes that can't be applied to certain customers, which means that you'll need to tag your non-wholesale customers for this to work.

You might be able to use this app ( to create automatic tagging rules so that you don't have to manually tag all non-wholesale customers. There isn't a specific tag that you can use, but a suggestion I have would be to use the "Tag by spend" rule, and automatically tag all customers as non-wholesale who have a cart total of less than $100, for example (or whatever makes sense for the typical spend amount of wholesale vs non-wholesale customers). There's a 7 day trial on the app for you to test it out.

From there, you'll then want to create customer group based on that tag:

  • In your Customers section, click the "Filter customers" option near the top left, and select "Tagged with" in the dropdown menu. Then, type in the tag that designates all non-wholesale customers.
  • Once you've filtered the search, click "Save this search" near the top right to create the customer group. 
  • When you create a discount, you'll be able to see this filtered search based on the tag in the Conditions section, under the "customer in group" dropdown option. Create your discount and save.

There may be another way to do this (another idea I had is to just indicate clearly on your website that discount codes won't apply to wholesale orders as a policy) - if so, I'd love to see if anyone from our community has any suggestions. 🙂


Shopify Expert
189 1 51

would love to see this happen as well - the solution Ana outlined works, but (correct me if im wrong) only if the customer has an account already AND is logged in. Otherwise they wont be able to use the code. 

That isn't really ideal because I really dont expect customers to log in or create an account. 

Does the app linked to create accounts for customers who have never logged in before, or dont have an 'activated' account?

14 0 44

Im going to bump this ticket up. We need to have a "exclude group" for coupons or promotions. I run into the same issue where i have Wholesalers log in (and see special pricing), but they try to take advantage of all the coupon codes that are intended for our B2C retail customers only.

New Member
2 0 1

I have the same problem.

I need to prevent wholesale customers tagged with a specific tag from using discount code.

And for retail customers I expect a simplified buying process without account creation and login, so I can't control the discount by including customers with a certain tag.

The option to limit the use of discount code and even automatic disconnect for a user group or user tag (retail) would be perfect!

New Member
1 0 3

We also need the ability to exclude customer groups from our promos.

3 0 8

We have this same need. We'd like to be able to offer discount codes but exclude certain customer groups based on tags.