Skip to content
Route Formula
All posts

How-to

Guide7 min read

How to Plan Delivery Routes from Your Online Shop's Orders

Plan deliveries from Shopify orders: export the orders CSV, import it as it is, and get a route per van. What gets skipped, and the one header to rename.

If you deliver your own online orders, the hard part of the data entry is already done: your customers typed their addresses at checkout. There's no need to copy them into a spreadsheet by hand.

Export the orders from your shop, import the file into Route Formula, and plan. This guide uses Shopify's order export as the example, because Route Formula recognizes its column names as they are. It also covers what trips people up: one order spread over several rows, and the order number showing up where the customer's name should be.

One thing to be clear about: this isn't a connection to your shop. You download a CSV file from your shop's admin and import that file. Nothing syncs in the background, and nothing is sent back to your shop.

Step 1: export the orders you'll deliver

In Shopify, the export works on the Orders page:

  1. Filter the orders down to the ones you're delivering, for example the unfulfilled orders that ship with your own vans.
  2. Click Export and choose which orders go in the file.
  3. Export them as a CSV file.

Shopify downloads up to 50 orders straight away and emails you larger exports. Keep the file as it is: you don't need to delete any columns.

Step 2: import the file

In Route Formula, open Add stops → Import a file → Choose a file. Before any address is looked up, the preview shows you what it understood:

  • Columns found: the address, and the customer if there is one.
  • Not used: every column it leaves out. In a Shopify export that's most of them: prices, line items, the billing address, the notes.
  • This file has N rows with an address: the number of stops you're about to add.

From a Shopify export, Route Formula takes the shipping address: Shipping Address1, then Shipping City, Shipping Zip and Shipping Country added to it. The billing address is ignored, so a gift sent to someone else goes to the right door.

If it looks right, click Find N addresses. The addresses are found on the map and the stops fill the list.

The Import stops preview: the file, the columns found (Address, Customer, Weight, Order reference, Priority), the columns not used, and the first rows with their weights in pounds.
The preview before anything is looked up: the columns found, the columns not used, and the number of rows with an address. (This file is an order sheet from episode 2; a shop export shows its own columns.)
2:33Video · Route Formula how-to #2 · HoustonImport tomorrow’s stops from ExcelWatch on YouTube

Trap 1: one order, several rows

Shopify gives every line item its own row. An order with three products takes three rows, and Shopify leaves many fields blank on the extra ones. The shipping address is on the order's first row only.

Route Formula skips any row without an address. So the three rows of that order become one stop, not three, and the extra rows never reach the map. You'll see it in the preview: a file with 18 rows for 12 orders says "This file has 12 rows with an address."

Only rows with an address count toward the row limit (25 per file on the Free plan, 500 on paid plans), so line-item rows don't use any of it.

If you, or a tool you use, copied the address down onto every row of an order, the rows repeat the same address. Route Formula spots that as well and offers Skip 2 stops already in the plan, ticked. Leave it ticked and each order is still one stop.

Trap 2: the order number as the customer's name

Shopify's first column is called Name, and it holds the order number, such as #1001. Route Formula reads a column called Name as the customer, so your stops would be titled #1001 instead of the person's name.

The fix is one header. Before you import, rename Name to Order. Then:

  • Order becomes the order reference, shown beside each stop and in the route sheet's Order ref column;
  • Shipping Name becomes the customer, the name on the stop and on the driver's sheet.

Rename it in a plain text editor. If you use Google Sheets or Excel instead, check your ZIP codes afterward: both can drop the leading zero of a ZIP such as 02134.

Trap 3: one customer, two orders

When the same customer places two orders for the same day, both rows carry the same address. The second one is offered as a stop to skip, ticked.

  • Leave it ticked and the driver makes one stop. The second order number isn't on that stop, so open the stop and add it to Order reference, for example 1001, 1004.
  • Untick it if you'd rather keep two separate stops at the same address.

What the import leaves out

A few columns in a Shopify export carry things your driver may want. Route Formula doesn't read them, so here's what to do:

  • Shipping Address2 (apartment, suite, floor) isn't read. It doesn't matter for finding the building, but the driver won't see "Apt 4B" on the sheet. If your customers use it, add it to the end of Shipping Address1 before you import.
  • Notes (the customer's delivery instructions) aren't read either. Read them in your shop before the drivers leave. The route sheet has a Notes column with room to write them in.
  • Shipping Province (the state code) isn't read. The street, city and ZIP are enough to find the address, and Route Formula checks its answer against your file: if the city or ZIP code it finds doesn't match yours, the stop is flagged as one that may be in the wrong place, with Check to see it on the map.
  • Weight: Shopify's order export has no weight column. If weight decides how full your vans get, add a column called Weight (lbs). For a company that works in pounds, a plain Weight column is read as pounds too.

An order with no shipping address at all, such as a pickup or a digital product, has nothing in those columns, so it's skipped like the line-item rows.

The import result: 24 stops added, and one stop that may be in the wrong place because its address was found only approximately, with a Check button.
After the import: a stop whose address was found only approximately is flagged, with Check to see it on the map.

Other shops' exports

Column names differ from one platform and export plugin to the next. Route Formula reads headers in English, Romanian, German, Dutch, French, Spanish, Italian and Polish, and names like Address, Delivery address, Street, City and ZIP all work.

The preview tells you quickly whether your file fits. If the address columns appear under Not used, rename them to Address, or to Street, City and ZIP, and import again. The Excel and CSV import guide lists every column Route Formula reads.

Step 3: plan the routes

Set your depot and pick today's vans under Today's fleet, then press Plan N stops. One press plans the stops a few ways and shows each as a card over the map:

  • Recommended comes first. With the trip length on Automatic it's called Shortest trips: the shortest trips that still reach every stop.
  • Fewest miles, Back soonest and Fewer vehicles appear when they come out different; with two or more vans you'll often see the last two.
  • Courier for far stops appears when a few orders are far out of town: it sends them to a courier and plans the rest. You book the courier yourself.
  • Your own lets you set the trip length, regions, a courier distance or sharing the work.

Options that come out the same are merged ("Same as …"), so you won't always see every card. Each card shows its miles, its trips and when everyone is back. Pick one and it becomes the plan, saved automatically. More on splitting a day between vans in how to split deliveries between drivers.

The options of one press: Shortest trips, recommended, 141 mi in 3 trips with all 24 stops, beside Fewer vehicles.
The options of one press: Shortest trips, recommended, next to Fewer vehicles.

Late orders

Orders keep coming in after you've planned. Export again later and import the new file: the orders already in the plan are offered as stops to skip, so only the new ones are added. Then press Optimize again.

Planning the same stops again that day is free. Only the new orders count against your month's stops.

Route sheets for the drivers

When the plan is ready, press Route sheets for one PDF with a sheet per route: their stops in order, with arrival times, customer names, order references and a map. Print it or send it. Drivers don't need an app or an account. If you'd rather print your own, see the delivery route sheet template.

The route sheet’s stop list: each stop in order with its address, order reference, arrival time and weight.
A route sheet’s stop list: each stop in order with its address, order reference, time and weight.
2:30Video · Route Formula how-to #7 · CharlotteGive each route a driver, print the sheetsWatch on YouTube

Try it with tonight's orders

Export tomorrow's orders, rename one header, and import the file. Create a free account: the Free plan includes 100 stops a month, with no card needed, and every plan has every feature.

Ready to plan tomorrow’s routes?

Plan your first route in a few minutes. The Free plan needs no card.

Plan your first route free