Country Specific Discount Code

Highlighted
Tourist
9 1 2

Hi,

I know currently this isn't a function that can be applied when creating discount codes in Shopify, but I'm looking to create a discount code that applies only to customers from a specific country (UK).

I also know I can set up a discount code for specific groups of customers, but that relies on them having an account and being logged in for that to work.

Is there a way that I could to take advantage of Shopify's own Geolocation app for example to apply a specific discount code based purely on the customers IP address should they be from the UK?

Or does anyone else have another workaround that would enable this to work?

I am aware of certain apps that have this functionality built in, and am currently using one such app on a free plan, but my issue with that is that the apps I've tried don't allow for a Shopify Automatic Discount which I'd also like to take advantage of in store for all users.

Thanks,

Mark

0 Likes
Highlighted
New Member
12 0 0

You can limit the discount to a customer group.

To set that up, just go to Discounts, select "Add Discount" in the top right, then change the "All Orders" dropdown to "Customer in a group" and select "From Canada" as that customer group.

As long as you have had at least one customer from each country, you can create new customer groups for the countries you are interested in:

https://help.shopify.com/en/manual/customers/manage-customers#create-customer-groups

27-50-7uqch-kzaan

I think these apps also provide this country discount feature

0 Likes
Highlighted
Tourist
9 1 2

I am aware of that option, but as I mentioned in my question, that relies entirely upon the customer having an account and being logged in for the country specific discount to then be applied. It doesn't work for all visitors from that specific country so therefore doesn't work for my needs.

I know of the apps as well, and am currently using Discount Ninja, but they don't allow for their discount codes to work in collaboration with Shopify Automatic Discounts so I'm looking for a workaround to that issue as well. 

1 Like
Highlighted
New Member
12 0 0

Gotcha. Sorry I missed those details.

0 Likes
Highlighted
Tourist
9 1 2

No worries. It turns out Shopify had made alterations to how you set up a 'Buy X Get Y' discount code without me knowing, so as my issue was directly related to the currency exchange rate padding that is set NOT being applied to discount codes when currency is converted, it was easily resolved by simply changing my discount code from a fixed amount of the cost of one item (which I had to do as previously you couldn't set a maximum number of times the 'Buy X Get Y' would be allowed to be used per order each time it became eligible) to a 'Buy X Get Y' discount with a maximum number of uses per order of 1.

After 4 days of racking my brain trying to create code for this myself and failing, I'm glad there was an easy solution in the end.

I'd still love to know if there is a code-based solution to this though if anyone else has any ideas or input?

Thanks,

Mark

0 Likes