Hi community,
I have following problem that I cannot solve. We have the following setup:
–––
Markets
I have 3 Markets setup:
- CH Market: That covers Switzerland and Liechtenstein
- EU Market: That covers the European Union, e.g. Germany, France, Spain, Italy and so on…
- International Market: That covers United States, UK, Latin America, Asia and so on… (not sure which countries finally).
Here the setup:
Locations
We have two locations that act as warehouses for deliveries for online orders. They each have individual stock of the products we sell online. Both warehouses stock the same product items.
- Zurich: Only ships to Switzerland and Liechtenstein
- Berlin: Ships to all the other countries in the EU and in Internationl market
Shipping Profile and Zones
I set up the general shipping profile with 2 locations and 3 zones
And the zones look like:
Just as a note: The configuration is not final, yet. I’m still setting things up.
Geolocation
I have the Geolocation App installed where the user chooses his “country” when accessing the shop.
–––
Now, to the problems. Lets take following “Product B” for example with following inventory:
#1 Stock Display
When a user selected France – where only the Berlin Location ships to – I want to display the user the stock available in the Berlin warehouse.
I added a custom liquid block that displays the stock available
{% assign current_variant = product.selected_or_first_available_variant %}
This works but displays the combined inventory from Berlin and Zurich, in the case of “Product B” its the amount of 3 (but it should be 9 at this point).
#2 Ordering Products
If a user selects Switzerland as his current country and also ships to switzerland, he can now do this for “Product B” even though there is no Stock in Zurich for this product – e.g. the inventory goes to minus in Zurich. But we do not want to fulfill the order from two locations…
Notes:
- When there is not enough stock in Berlin and Zurich the order is not possible right now, which is correct
- When the stock goes to 0 for Berlin and Zurich combined, the product is displayed as out-of-stock, which is correct
#3 Shipping country
If a user selects France as his country, we want that the user to only be able to select France as his shipping country in the checkout.
So, I’m stuck with these Problems, Problem #1 and #2 are importan, #3 not so much. I really tried a lot and researched but cannot figure it out. Do I need an app for this or did I configure things wrong?
Thanks so much for any help.




