We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Discount for customer segment works for all.

Discount for customer segment works for all.

Graham256
Excursionist
15 0 9

I've set up a segment for US customers. Shopify correctly  shows that segment contains 62% of my customer base, all in US.

 

I then set up a discount code for that segment. Shopify correctly shows the discount code is for US customers only.

 

A Dutch customer with a Dutch shipping address only then applies the code successfully and is able to checkout and pat without problem.

 

Why are customer segments not working?

Replies 6 (6)

LitExtension
Shopify Partner
4963 1010 1192

Hi Graham,

It sounds like there might be an issue with how Shopify is applying the customer segment rule. Even though you’ve set up the discount for US customers, Shopify's customer segment feature may not be fully enforcing the location-based restriction during checkout.

 

One possibility is that the discount code is being applied based on the customer’s account or email, rather than their shipping address. To fix this, check the settings of the discount to ensure it is specifically restricted to customers with a US-based shipping address, not just their billing address or account. If the issue persists, you might want to contact Shopify support to make sure there aren't any technical glitches affecting the segment rule.

 

If this was helpful, hit the like button and accept the solution.
Thanks

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com

Ellie-BOGOS
Shopify Partner
467 35 73

Hi @Graham256 😊 I'm Ellie, a Shopify promotion expert (5+ years experience).

 

Could you please show me how you set up your location-based customer segment?

 

If you use the template I show below, then the issue should be:

-> your Dutch customer has a Dutch shipping address BUT HAS BILLING IN THE US (or use a VPN or proxy with a US IP address)

- -> Shopify still considers your Dutch customer to be in the US.

EllieBOGOS_0-1744273165172.png

 

Much as this is not a regular scenario, if you want to fully cover this case, I recommend using market-specific discounts instead.

 

🌟If you're looking to run gift offers like BOGO, Buy X Get Y, Gift with Purchase,... for US customers only (which would work more accurately), I recommend using the BOGOS app:

 

EllieBOGOS_0-1744274986255.png

 

🌟  Claim your 7-day to try it for free (4.9 average ratings, 2.600+ reviews)

 

It's so lovely of you to Like and Accept as Solution. I'm really appreciated  💙

If my post is helpful, let me know by giving a Like or Accept solution.
Use BOGOS to create powerful promotions on your Shopify stores: free gifts, discounts, bundles, upsells!
Have a nice day ^^

AlphaSale_Kathy
Shopify Partner
33 3 6

Hi @Graham256

 

As another idea for your setup, you can also apply or exclude customers based on customer tags. Might give you more control, especially if you're working with a regular userbase rather than random clients.

In Alpha Sale, for example, you can find a setting like this: 

AlphaSale_Kathy_0-1744288983524.png

 

Hope this helps!

Try Alpha Sale & Discount Manager
- Add crossed-out product prices in bulk
- Block coupons and from applying to sale items
- Target discounts by customer tags, limit maximum discount amount, and more

Prad14
Visitor
1 0 0

I am also having this issue. It was fine a few weeks ago, but for some reason something must have deprecated and this no longer works (it applies the discount to all customers). I am not segmenting by location, but rather by custom segments using tags.

 

I haven’t made any changes to my discount codes or segments so I am confused as to why it has suddenly stopped working correctly.

AlphaSale_Kathy
Shopify Partner
33 3 6

Hi @Prad14, just to double-check — how are you testing this? By default, Shopify shows the discount to all users until they’re logged in. But once the customer logs in to make the actual purchase, Shopify validates the customer's email, and if they don’t belong to the specified segment, the discount gets removed.

Try Alpha Sale & Discount Manager
- Add crossed-out product prices in bulk
- Block coupons and from applying to sale items
- Target discounts by customer tags, limit maximum discount amount, and more

Ankit_Thakur
Shopify Partner
88 1 10

Hi @Graham256 

If you are still looking for a solution to this, I would suggest that you create the Discount based on Customer tags. Customer tags are an easy way to achive this, you can simply assign a common tag to the customers and then create the Discount based on Customer tags. 

Once done you can use any discount app to create discount based on Customer tags. 

Let me know if you still have any further doubts related to it. 


Shopify Developer/Consultant
If my suggestions are useful, please let me know by giving it a like or marking it as a solution.
And if you want to customize or develop new feature on Theme or App.
Skype:-ankit.thakur_5