Goal: Run B2C (business-to-consumer) and B2B (business-to-business) on one Shopify store with two warehouses, showing different inventory by customer type.
Current behavior: Collection pages (product grouping pages) default to showing products from warehouse1, which suits B2C.
Need: B2B customers should see Collection pages limited to products from warehouse2 only.
Considered option: A third‑party app can do this but costs $50 AUD/month; the poster would rather use a second Shopify store for cleaner segregation than pay for the app.
Request: Looking for code examples or a theme/liquid customization approach to point Collection pages to a different inventory location for B2B customers (i.e., filter collections by warehouse per customer group) without using the paid app.
Status: No solution provided yet; open request for code/workarounds. No attachments or media referenced.
Summarized with AI on February 20.
AI used: gpt-5.
Hi All, We are trying to combine B2C & B2B on a single shopify store. We have two physical warehouse locations. The issue is Shopify Collection pages default to products in warehouse1 for B2C customers which is great however we need B2B clients to see Collection pages that only show products from warehouse2.
There is one App that will do this which costs $50 AUS per month and we would rather have a second shopify store as it segregates the B2C & B2B much better. Surely someone has some code examples out there to point a Collection page to a different location?
One way I’ve used is to run Flow automations to surface this data in product metafields, like “Available at warehouse 1” and “Available at warehouse 2”.
Then it can be used as a filter on collection page (maybe even semi-automatically, depending on the logged-in customer, this filter can be pre-checked ).