Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. How Do I Route Shopify Orders to the Right Warehouse or Shop Automatically?
Problems We Solve

How Do I Route Shopify Orders to the Right Warehouse or Shop Automatically?

With multiple Shopify locations, orders often ship from the wrong site or get split badly. We build routing rules that pick the best location per order.

Updated 3 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Orders go to the wrong location when routing follows a fixed priority list instead of your real rules about stock, distance, cost and splitting. We write those rules down, check what Shopify's own order routing can express, and build custom routing where it cannot, with a clear reason recorded against every decision.

Stock in the right place, order sent to the wrong one

You have a main warehouse, a second unit, and perhaps a shop or two that hold stock. An order comes in from Glasgow for items that are all in the northern unit, and it goes to the main warehouse in the south, which has to take one item from the other site first. Another order gets split into three parcels because one item was short at the first location, when a single other location had everything.

Staff notice and move orders between locations by hand. On a quiet day that is fine. On a busy one the orders that needed moving are the ones that slip.

Why the routing goes wrong

Shopify assigns orders to locations using its order routing settings, and those have become more flexible over time. For a simple setup they are enough. The trouble comes when your real rules are more specific than the settings allow, or when the stock figures the routing relies on are not accurate.

  • Rules that depend on things Shopify does not know, like which site has capacity today or which courier collects from where.
  • Preferences that change: shops keeping display stock, or a location that should only ship when others cannot.
  • Stock that is not accurate at each location, so routing trusts a number that is wrong.
  • Splitting that makes sense for some products but not for others, like fragile items that should never ship alone.

What bad routing costs

ProblemEffect
Shipping from the far siteSlower delivery and higher courier cost
Needless split shipmentsSeveral parcels, several labels, several delivery charges
Transfers to cover ordersStaff time and stock in transit that cannot be sold
Shops losing display stockEmpty shelves in-store to fill online orders
Manual reassignmentSomeone watching the order list all day

Courier costs are where this shows up first, but the transfer work is often bigger. Each time stock is moved between sites to complete an order that should have gone elsewhere, someone picks it, packs it, books it and books it in again at the other end. None of that appears as a line on a report, so it tends to be accepted as normal.

How we build order routing

  1. Write down the rules. Which location for which postcodes, when to split, what to protect, what capacity each site has, what each courier costs from each location.
  2. Fix location stock first. Routing is only as good as the stock figures behind it, so we make sure each location's stock is accurate and updated as it changes.
  3. Use native routing where it fits. If Shopify's order routing rules can express what you need, we configure them and stop there.
  4. Build a routing service where it cannot. A small service listens for new orders through webhooks, scores each possible location against your rules and moves the fulfilment order to the best one through the Admin API.
  5. Record the reason. Each routing decision is logged with why that location won, so staff can see the logic and you can adjust rules with evidence.
  6. Leave room for people. Orders that no rule handles well, like very large or unusual ones, are held for a person to decide rather than forced through.

Rules are kept as settings where possible, so moving a postcode area or protecting a shop's stock over a weekend does not need a developer.

Orders landing where they should

Peak periods are where the difference is clearest. When one site is swamped, a capacity rule can send more orders to the quieter one without anyone reassigning them by hand, and switching that rule back afterwards is a settings change.

Orders land at the location that makes sense, most of the time without anyone looking. Split shipments happen when they are the better option, not by accident. Shops keep what they need on the shelf. The person who watched the order list now looks only at the few held orders, and can see why every other order went where it did.

Is your routing working against you?

  • Staff move orders between locations by hand.
  • Orders split into several parcels when one site had everything.
  • Orders are often fulfilled from the site further from the customer.
  • Shops lose stock to online orders they should not be filling.
  • Nobody can easily explain why an order went where it did.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Can Shopify do this without custom work?

Often, for simpler rules. We check what the built-in order routing can express on your plan before suggesting anything custom.

What if a location runs out mid-day?

Routing uses live stock, so once a location runs out, new orders go elsewhere. Orders already assigned can be reviewed if the stock picture changes.

Does this work with a 3PL as one of the locations?

Yes. A 3PL can be one location among several, as long as its stock reaches Shopify reliably.

What affects the cost?

The number of locations, how complex the rules are, and how good the stock data is at each site today.

Keep reading

More on Problems We Solve

Start here

Tell us what your Shopify store is making harder than it should

Describe the problem as your team sees it day to day: what they do, which tools are involved and what goes wrong. We will tell you what we would change and what it would involve, and if a smaller fix would do the job, we will say that instead.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →