How to Show the Nearest Pickup Point First in Shopify
Sort Shopify pickup options by distance. Check the source labels, carrier priorities, km and miles, and what happens when a distance is missing.


To show the nearest pickup option first, the checkout must receive usable distance information and apply an order that puts distance ahead of carrier preference. With Shippium, distance must already appear in the delivery option names. Sorting cannot find a closer location that your pickup provider never returned.
“Nearest” here means nearest among the returned options with recognized distances. It does not mean a search of every pickup point in the country.
Where the distance data comes from
Your carrier or pickup integration supplies the options and their labels. Shippium reads distance from those labels and reorders existing delivery options. It does not create rates, calculate a new pickup network or provide its own pickup-map selector.
Check the actual names passed to checkout. A distance shown only inside another app’s map is not necessarily present in the delivery option name. If checkout receives only a general “Pickup point” service and the customer chooses a location later, first establish what the integration exposes for sorting. Reordering services and sorting individual locations inside a selector are different jobs.
Choose nearest overall or preferred carrier first
Choose the policy before configuring carrier priorities. Shippium’s listing describes distance sorting within carrier priorities; a preferred carrier can therefore be the wrong fit for a strict nearest-overall goal.
The table is an illustrative acceptance example. It assumes every distance is recognized. “Carrier A first” means grouping A before B, then sorting within each carrier; these are intended outcomes to verify, not app test results.
| Returned option name | Position with distance first across all carriers | Position with Carrier A first |
|---|---|---|
Carrier A - 0.9 km | 2 | 1 |
Carrier B - 0.4 km | 1 | 3 |
Carrier A - 2.3 km | 3 | 2 |
Both policies can be sensible. One helps customers see the shortest listed distance; the other expresses a merchant’s carrier preference. Do not describe the second as “nearest overall”. Configure priorities to match your goal and confirm the order in the current app preview and checkout, rather than assuming undocumented precedence.
Check kilometres, miles and decimal commas
Shippium’s public documentation describes km, miles, European decimal formats and custom distance patterns. Support for these formats does not prove every possible carrier label will be recognized correctly.
| Illustrative input | What to check | Why it matters |
|---|---|---|
Pickup - 1.2 km and Pickup - 1,2 km | Both represent the same distance | A decimal comma must not change the numeric value |
Pickup - 0.5 miles and Pickup - 1 km | The miles option is closer | Comparing the bare numbers is not enough |
Pickup 24 - 0.8 km | The distance is 0.8 km, not 24 | Location numbers must not become distances |
Pickup - distance unavailable | The missing-distance policy applies | An unknown distance is not zero |
For an unusual label, use the app’s documented custom-pattern workflow and validate it on real returned names. A pattern that matches a number is not sufficient if it captures a price, postcode or store number. Keep the original label in your notes so changes from the provider are visible.
Validate the order and fallback behavior
Test the policy with the cart, address and labels your customers will use. The examples above are a checklist for your own validation; no merchant checkout test was performed for this guide.
- Collect returned options for a representative address and record their original order and distance labels.
- Write the expected order, including carrier groups and where options with no recognized distance should go. Shippium documents first or last placement within each group.
- Configure distance recognition and priorities, then compare the app preview with your notes.
- Activate the delivery customization and open a fresh checkout. Check option order, prices and the selected option separately.
- Repeat with another address, mixed units, a missing distance and equal distances. Where the cart has multiple delivery groups, check each group rather than assuming one list covers the order.
Handle missing distances and ties deliberately
- Missing distance: choose first or last according to your business goal. Putting unknown values first can prevent the first option from being the nearest known point.
- Equal distances: confirm the observed order, but do not promise a particular tie-breaker unless the app documents it.
- A closer point is absent: inspect the pickup provider’s coverage and returned options. Sorting cannot add the missing location.
- The wrong point is first: check carrier grouping, parsed units and the exact label before changing several rules at once.
For activation and the general checkout checks, follow the guide to reordering Shopify shipping methods.