How can I set my store to sell only in-stock items based on customer location?

I don’t know if you can help, but I am trying to do something with my store which will allow me to sell products to customers who are in a particular location say USA for instance and can only order products which are available in stock in the warehouse in that location. Say for instance, I have 2 warehouses in different location for one store, one in USA and another in the UK, customers who live in the UK should only be able to order products as long as those products are available in the warehouse attached to their location. But once the products are no longer in stock in the warehouse of their location, then they will not be able to place that order.

Please let me know if this can be done using some Shopify settings or if there is a third party app that can enable this setting.

Thank You.

Hi @Fatima9 ,

It is possible to have products available to customers based on the location they’re purchasing from. In order to set this up, you’ll need to create shipping profiles that will restrict products to specific locations. For example, if a customer from the U.S selects a product, it will only be available to them based on how you’ve set up the shipping profiles. Once the shipping profiles are set up for these products, a U.S customer will see a message at checkout indicating that this product is not available in their region.

Screenshot of message at checkout:

You can follow the instructions below to create a shipping profile:

  • From your Shopify admin, go to Settings > Shipping and delivery.
  • In Custom shipping rates for products, click Create new profile.
  • Enter a name for the profile.
  • Within the Products section, use the search bar to add products to the shipping profile you’ve created.
  • Input any changes you need to make to your locations. Please refer to Manage your locations for more information.
  • For each shipping zone that you want in your shipping profile, complete the following steps:
  1. In Shipping to, click Create shipping zone.
  2. Name the shipping zone.
  3. Select the countries or regions that are part of the zone, and then click Done.
  4. For each shipping rate you want in the zone, click Add rate, choose the rate’s details, and then click Done.
  • Click Save.

Another suggestion for restricting specific products to certain locations is an app called Advanced Store Localization. Advanced Store Localization is a third-party app that is designed by third-party developers. This app allows the store owner to be able to set country-specific products, pages etc. You’re able to organize countries into zones that will allow products to be visible based on the customers location.

If you require further assistance with the app, there is a Get Support option located directly on the app page in the Shopify App Store. I’ll also share a resource from our Help Center on how to get support for third-party apps.

Get Support for third-party apps: