Show or hide shipping options depending on stock levels

Hi, we are running a Shopify store with 2 warehouse locations. One in Germany and one in the UK.

For orders placed in Europe (excluding UK) we want to fulfill from the Germany Warehouse using Fedex. For orders placed from the UK, US and Oceana we want to use the UK Warehouse.

When a European customer places an order, there might not be any stock in the Germany Warehouse but we may have stock in the UK. Is it possible to hide the default shipping methods and show 2 new methods that apply only in this scenario. One is to ship from the UK with extra charges, duties and a delay. The second option allowing them to place the order anyway but wait for the German stock to be replenished.

So far I have been unable to find shipping methods that can be driven by stock. Does anyone know of a solution?

With Shopify Shipping profiles, you can set up two warehouses for different countries. When customers place orders from their respective locations, Shopify automatically assigns the appropriate fulfillment location. If needed, you can manually modify the fulfillment location in the Shopify Order admin. Additionally, you have the option to prioritize locations in case of stock unavailability, and Shopify will automatically choose the next available location.

For a more detailed understanding, you can refer to this guide.

An app like PH Ship Rate and Track can utilize the Shopify order fulfillment location to help you process shipments with FedEx.

However, it’s important to note that offering multiple shipping options may not be possible in situations where stock is unavailable.