Add a store locator to your storefront
Show shoppers the stores, dealers and stockists that carry your products: add or import locations in B2B Onboarding & Wholesale, then add the Store locator section to a page. On Pro, set the products each location stocks and show stock levels.
B2B Onboarding & Wholesale includes a store locator: a map and list of the stores that carry your products, with search, "Use my location", a retailer filter and directions. You add the locations in the app and place the locator on a page of your theme. No map or geocoding key is needed from you.

What each plan includes
| Free | Grow | Pro | |
|---|---|---|---|
| Map and list of locations on your storefront | Yes | Yes | Yes |
| Unlimited locations, CSV import and the locations API | Yes | Yes | Yes |
| Products stocked at each location, and filtering the map by product | Yes | ||
| Stock levels (stocked, low / medium / high, or exact quantity) | Yes | ||
| The Where to buy block on product pages | Yes | ||
| The inventory feed API | Yes |
The pages that need Pro stay open on every plan and say so, with a View plans link. See Plans and what each includes.
Open the store locator
- In your Shopify admin, open the B2B Onboarding & Wholesale app.
- Click Store Locator in the app's navigation.
The first page counts your locations, how many are active and how many still need geocoding, and walks you through three steps: add your locations, add the map to your theme, and (optionally) assign products. Quick links on the right open every other page.

Add your locations
You can add locations one at a time, import a CSV, or have a distributor or ERP push them through the API (see Keep locations and stock in sync by API).
One at a time
- Click Add location.
- Fill in Name (the only required field), the address, and anything else you want shoppers to see: phone, email, website, description and opening hours for each day.
- Retailer is the chain or banner the store belongs to, such as "Whole Foods Market". Shoppers can filter the map by retailer.
- External ID is your own key for the location, such as a store number. CSV imports and API updates use it to update the right location instead of adding a copy.
- Leave Active ticked. Inactive locations are kept but hidden from the storefront.
- Click Save.

Import a CSV
- Click Import CSV, then Download template CSV if you want a starting file.
- Add one row per location with a header row, and upload it with Add CSV file.
- Check the column mapping. Headers are matched automatically (common names such as zip, state, lat and lng work too); only Name has to be mapped.
- Check the preview of the first five rows and click Import.

Rows are matched on external_id when the file has one, otherwise on name, address and postal code, so importing the same file again updates your locations instead of duplicating them. A file can hold up to 5,000 rows.
Geocoding
Every location needs coordinates to appear on the map. The app finds them from the address when you save or import; you do not need a Google Maps or Mapbox account. Include latitude and longitude columns to skip this step.
Small imports are geocoded straight away. Large ones are geocoded in the background, and the Locations list shows them under Needs geocoding until they are done. When the app can only place an address approximately (for example by postal code and city), it says so on the location; open it and check the pin.

Add the locator to your theme
The locator is a theme app block, so you add it in the theme editor without editing code. It needs an Online Store 2.0 theme (Dawn, Horizon and every theme from the Theme Store since 2021). The Installation page in the app has the same steps and an Open theme editor button.

- If you do not have a page for it yet, create one under Online Store > Pages, for example "Find a store".
- Go to Online Store > Themes and click Edit theme on your live theme.
- Open your store locator page from the page selector at the top.
- Click Add section (or Add block inside a section) and switch to the Apps tab. Pick Store locator, listed under the Wholesale app.

- Adjust the block's settings and click Save.

The block's settings:
| Setting | What it does |
|---|---|
| Heading | The title above the search, "Find a store near you" by default. |
| Only show stores that carry | Optional (Pro). Pick a product to show only the locations that stock it. |
| Default search radius | How far a search reaches, in the unit set in the app (miles or km). |
| Show search box, Show "Use my location" button | Turn either off if you do not want it. |
| Layout | Map left, map right or map on top, with a height and an optional maximum width. |
| Map style, colours, corner radius | Light, detailed or dark map, pin and accent colours, text and panel colours. Fonts come from your theme. |
Locations appear on the map once they are active and geocoded. Shoppers can search a city, address or postcode, use their location, change the radius, filter by retailer and open directions to a store.
Link to the map
The Store locator section reads two optional URL parameters, so a link from an email, a product page or an ad can open the map already filtered:
?near=<place>searches a place on load, for example/pages/find-a-store?near=Boston%2C+MA.?product=<id>shows only the stores stocking that product (a numeric product ID or a GID). This needs Pro; on other plans the map ignores it and shows every store.
They can be combined: /pages/find-a-store?product=8123456789&near=02139.
Set the products each location stocks (Pro)
On Pro, you can tell shoppers which stores carry which products.
- Open Products from the Store Locator page.
- Click Choose product and pick a product.
- Tick every location that carries it. The filter box narrows the list by name, retailer or city.
- Under Stock at checked locations, choose a Stock state, and a Quantity if you show exact quantities.
- Click Save.

You can also work the other way round: open a location and use Products stocked here to add products and set each one's stock.
Choose how much stock shoppers see
In Settings > Stock display, pick the level of detail you can keep accurate:
| Display mode | What shoppers see | Use it when |
|---|---|---|
| Stocked / not stocked | Whether the store carries the product | You do not get sell-through data from retailers. |
| Low / medium / high | A stock band | A weekly feed, where exact counts drift. |
| Exact quantity | The number on hand | A live or daily inventory feed. |
Treat stock as stale after (days) protects you from a feed that stops: once a location's stock for a product has not been updated for that many days, the levels and exact modes fall back to plain "stocked", so the storefront never shows a confident number from old data.

The same page sets the map defaults (distance unit, default radius, and where the map opens before a shopper searches) and the map's colours and style.
Add Where to buy to product pages
The Where to buy block lists the nearest stores that stock the product being viewed, with an optional compact map. It shows only stores you have assigned the product to, so it needs Pro.
- In the theme editor, open a Product template from the page selector.
- In the product information section, click Add block, open the Apps tab and pick Where to buy.
- Drag it where you want it (usually under the buy buttons) and click Save.
Keep locations and stock in sync by API
A distributor, ERP or retailer feed can keep the locator up to date without anyone opening the app.
- In Settings > API access, enter a label (for example "Distributor feed") and click Create token. The token is shown once, so copy it then. You can revoke a token at any time.
- Click Show next to API reference for the exact endpoint URLs for your store and example requests.
- Send requests with
Authorization: Bearer <token>andContent-Type: application/json:PUT .../v1/locationswith{ "locations": [...] }adds or updates locations, matched onexternal_id(on every plan).PUT .../v1/inventorywith{ "items": [...] }sets stock per location and product:location_external_id,product_id(a GID or numeric ID), and optionallyvariant_id,stock_state(stocked,out,low,mediumorhigh) andquantity(Pro).
Locations pushed by API are geocoded the same way as imported ones.
If the locator does not show
- The Apps tab has no Store locator: the theme is not an Online Store 2.0 theme, or you are editing a different theme from the one you meant to.
- The map shows no stores: check that your locations are Active and not under Needs geocoding on the Locations page.
- A store is in the wrong place: open it and check the address, or enter its latitude and longitude.
- Where to buy is empty: no locations have that product assigned, or the store is not on Pro.
Stuck? Give us collaborator access and we will set it up for you.
Sync wholesale customers and applications to Klaviyo
Send wholesale tiers, companies, net terms and application events to Klaviyo so you can segment B2B buyers and automate approval, quote and renewal emails.
Email wholesale applicants when you approve or deny
Tell wholesale applicants they've been approved, denied, or need to send more information, using your own branded emails through Klaviyo.