Re: Restrict certain countries from adding to cart issues

Restrict certain countries from adding to cart issues

oohtruck1
Tourist
8 0 2

We have a certain collection of products that are restricted to ONLY be sold in the US and Canada, so to restrict the sale of these to other countries, we have created an additional shipping profile that is applied to this collection, preventing the user from completing their checkout if they selected them.

 

This would work fine, however anytime a US/Canada customer adds multiple products that have both our regular shipping profile AND this special Us/Canada profile collection, it is essentially applying two different profiles to their order, leading to an increased shipping cost (since it's applying shipping twice). I have talked to Shopify support about this several times and it seems like this is accurate behavior, but it creates a less than ideal scenario for us where our customers are paying a very expensive shipping rate if they want products from both collections.

 

Shopify's suggestion was to use an app that would block specific countries, but it seems like the only one that would potentially work is GeoLocation: Product Blocker, but that just straight up hides the collection which seems like a bad user experience if a customer from a blocked country literally just can't see anything.

 

Does have anyone have any other suggestions on another workaround for this? We are more than likely losing out on sales due to increased shipping costs and it seems crazy to me there isn't an easier way to just restrict customers from certain countries from adding a product to their cart.

 

 

Replies 4 (4)

devtalk
Shopify Partner
185 22 49

@oohtruck1 

Welcome to Shopify Community,
Here is an App you can try this ,
https://apps.shopify.com/geoip-based-product-blocker

 

thank you.

oohtruck1
Tourist
8 0 2

Hey Devtalk, thanks for the reply but as I mentioned in my post, I've tried this app before and while it works well, it is very limited in its scope and does not provide a good user experience.

RothkoAndFrost
Visitor
3 0 0

Howdy,

 

If you set up Markets (Settings > Markets), then within the Product's detail page under Publishing you can click Manage and change which markets a particular product is available to.

 

Alternatively you can use Shopify's build in localization features to hide parts of particular templates based on the ISO code of the country from which the customer is browsing. This is typically used for localization (for example, display a specific message for Canadian customers), but can be applied to any part of the liquid template. Shopify has published more info here: https://www.shopify.com/uk/partners/blog/customize-content-by-country

 

HTH,

Simon

JimJong
New Member
56 0 0

Hi, you can restrict certain collection to specific countries using the Cart Lock https://apps.shopify.com/cart-lock app. Follow the steps below:

 

  1. Open the app and click on the "Add a new rule" button.
  2. Click "Add a new condition" and select the "Collections" then add your desired collections.
  3. Click "Add a new condition" again and select the "Shipping country" option.
  4. Now choose "Block if not found" and "Canada,United States of America" from the "Shipping country" field.
  5. In the "Error message" field, add an appropriate message which will be displayed in the checkout page.
  6. Save the rule.

 

usa.png

 

Now the selected collection can be purchased from Canada and USA only.