Hide variants that are out of stock in one country location

Hi, so our store sells/ships to Canada and the US. My challenge is that if a variant inventory level in Canada is zero but in the US it still has 50, the variant will display to both Canada and US customers. Ideally, I wanted it to show “sold out” in Canada or perhaps hide it. Is there a workaround on this? Or do you know of a specific app to handle it? Thanks.

Hi @hydrangeas ,

to do this, you will need to have some familiarity with liquid and feel comfortable editing the theme files.

I’m not sure how your store is currently configured - but my initial thought would be to try using

{{localization.country}}

and

{{product.variant.store_availability.location}}

to match variants to the locale of the visitor.

From a quick search in the app store, I found 2 apps that may be able to help:

  1. https://apps.shopify.com/location-inventory-info?surface_detail=location+product&surface_inter_position=1&surface_intra_position=27&surface_type=search

  2. https://apps.shopify.com/product-inventory-information?surface_detail=inventory+location&surface_inter_position=1&surface_intra_position=6&surface_type=search

(though I haven’t used either of these before, so I can’t speak to how well they work)

If you need help implementing a solution like this or would like us to provide a more in-depth assessment of your store to see if this is possible for you, feel free to send us a message.

1 Like

Hi @hydrangeas , have you found any solution for this ?

Hi @defaizan , during the time, Shopify suggested to me to install an inventory management app since their system wasn’t designed to handle this scenario. I ended up setting up 2 separate Shopify stores for US and Canada. That way, I had better inventory, pricing, and promotions control. The downside is the maintenance work and cost of having 2 sites. Hope that helps.