Hide variants according to customer’s country

Hello there Shopify community,

I need a help with hiding some product variants according to customer’s country. My company is selling perfuming products, and some of them are HAZMAT regulated, and we can’t sell all of the variants , just some of them. So, I was wondering if it is possible to show only first two ( in our case the lowest ) variants if they are signed in? We are using Wokiee theme.

thanks

possible, and it will need custom coding.

Hi @Nekko ,

Hiding specific variants from certain countries would be require some editing to your website code and be quite customised. If you’d like to look more into that, I’d recommend reaching out to a Shopify Expert to see if you resonate with one to work with in this.

Another possible way you could approach this is by having a certain section of your store blocked off for specific countries if they are unable to purchase the product. It might not be ideal or the perfect way, but I said I’d mention it as a possible workaround none the less. There are some apps which enable you to only allow customers from certain countries/ regions (and many other criteria’s) into areas of your store. It would mean, having the products as seperate maybe and not variants though. You can see a selection of the best apps I feel you could use for this in the Shopify App store here.

Hope this helps!

Hello @Nekko ,

Yes it’s possible but not without the customization.
If you are looking for idea you can drop me a message for it.

Thanks

I found a solution for this through CSS

Hi there, care to share your solution on how to hide variants according to a customer’s country?

Hello I really want to know about your solution to hiding variations by geographical location but o don’t know how to contact you