The Direct Ordering web storefront displays a brand's locations on the Locations page so guests can choose where to place a pickup or delivery order. The order in which locations appear depends on whether the guest's browser shares location coordinates with the storefront and whether the guest has entered a pickup or delivery address.
How Locations Are Sorted
When Location Services Are Off
When a guest opens the Locations page, and the browser is not sharing location coordinates, locations display in alphabetical order (A to Z) by location name.
When Location Services Are On
When the guest's browser shares location coordinates, the storefront calculates the distance between the guest and each open location and displays locations in ascending order by distance, with the nearest location appearing first. The distance calculation uses straight-line (Euclidean) distance by default. For some brands, the storefront calculates actual driving distance instead.
When an Address Is Entered Manually
When a guest enters a pickup or delivery address in the search box, the storefront treats the entered address the same as if location services are on. Locations are sorted by distance from the entered address, nearest first.
Tiebreaker for Equal Distances
If two locations are equidistant from the guest's coordinates or entered address, the storefront uses alphabetical order as the tiebreaker.
Which Locations Appear on the Storefront
Locations marked as hidden, closed, in testing, or otherwise non-live in the Direct Ordering Admin Portal do not appear on the storefront Locations page and are not part of the sort. Locations marked as Coming Soon are an exception. A Coming Soon location appears in the list ahead of its launch so guests can see it, but orders cannot be placed at that location until it goes live.
Sorting Behavior and Limitations
The sorting logic applies across all locations on the Direct Ordering web storefront. The order in which locations appear cannot be configured for an individual location, and there is no option to manually pin or prioritize a location at the top of the list before an address is entered.
Finding the Nearest Location
Locations are listed alphabetically by default. To see the closest locations first, guests can take either of the following actions:
- Allow location access when prompted by the browser.
- Enter a pickup or delivery address in the search box at the top of the Locations page.
Either action re-orders the list so the nearest location appears first.
Frequently Asked Questions
The first location depends on the active sorting method. When location services are off and no address has been entered, the location whose name comes first alphabetically appears first. When location services are on or an address has been entered, the location closest to the guest appears first.
No. The sorting behavior applies across all locations and cannot be configured for an individual location. There is no option to manually pin or prioritize a location at the top of the list before an address is entered.
This occurs when location services are off. In that state, the list is sorted alphabetically, so the location whose name comes first appears first for every guest regardless of physical location.
Guests can allow location access when prompted by the browser, or enter a pickup or delivery address in the search box at the top of the Locations page. Either action re-sorts the list so the nearest location appears first.
Comments
0 comments
Please sign in to leave a comment.