·4 min read·guide

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.

Kasper Hermann Due Stück
Founder & E-commerce SpecialistBuilding Shopify apps focused on SEO and growth for merchants.
A house and three parcel lockers, with a ring around the nearest locker.

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 namePosition with distance first across all carriersPosition with Carrier A first
Carrier A - 0.9 km21
Carrier B - 0.4 km13
Carrier A - 2.3 km32

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 inputWhat to checkWhy it matters
Pickup - 1.2 km and Pickup - 1,2 kmBoth represent the same distanceA decimal comma must not change the numeric value
Pickup - 0.5 miles and Pickup - 1 kmThe miles option is closerComparing the bare numbers is not enough
Pickup 24 - 0.8 kmThe distance is 0.8 km, not 24Location numbers must not become distances
Pickup - distance unavailableThe missing-distance policy appliesAn 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.

  1. Collect returned options for a representative address and record their original order and distance labels.
  2. 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.
  3. Configure distance recognition and priorities, then compare the app preview with your notes.
  4. Activate the delivery customization and open a fresh checkout. Check option order, prices and the selected option separately.
  5. 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.

Sources

Pocium updates for Shopify merchants

New apps, practical Shopify guides, and product updates.