ConspireOnboarding & Wholesale
Guides

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.

The Store locator section on a storefront page: a street map of Chicago with a pin, and beside it a search for "Chicago, IL" returning one store 0.9 miles away with its retailer, address and a Directions link

What each plan includes

FreeGrowPro
Map and list of locations on your storefrontYesYesYes
Unlimited locations, CSV import and the locations APIYesYesYes
Products stocked at each location, and filtering the map by productYes
Stock levels (stocked, low / medium / high, or exact quantity)Yes
The Where to buy block on product pagesYes
The inventory feed APIYes

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

  1. In your Shopify admin, open the B2B Onboarding & Wholesale app.
  2. 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.

The Store Locator page: counts of 27 locations, 27 active, 6 products tracked and 0 needing geocoding, a three-step setup guide with each step marked Done, and quick links to Locations, Products, Import CSV, Settings & API and Installation

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

  1. Click Add location.
  2. 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.
  3. Retailer is the chain or banner the store belongs to, such as "Whole Foods Market". Shoppers can filter the map by retailer.
  4. 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.
  5. Leave Active ticked. Inactive locations are kept but hidden from the storefront.
  6. Click Save.

A location's page in the app: the Details card with name, retailer, external ID and the Active checkbox, the Address card below it, and on the right the products stocked at this location, each with a stock state such as Medium, High or Stocked

Import a CSV

  1. Click Import CSV, then Download template CSV if you want a starting file.
  2. Add one row per location with a header row, and upload it with Add CSV file.
  3. 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.
  4. Check the preview of the first five rows and click Import.

The Import locations page: an Upload a CSV card with an Add CSV file button, and a Columns card explaining that only Name is required, how is_active, tags and country_code are written, the 5,000-row limit and a Download template CSV link

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.

The Locations list: tabs for All, Active, Inactive and Needs geocoding, a search box, and rows showing each store's name and external ID, retailer, city, number of products, a Geocoded badge and an Active badge

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.

The Installation page: steps for the Store locator page and for the Where to buy block on product pages, with Open theme editor, Styling and Not seeing the app cards on the right

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

The theme editor's block picker on the Apps tab, filtered by "locator", showing one result: Store locator from the Wholesale app

  1. Adjust the block's settings and click Save.

The theme editor with the Store locator block selected: its settings on the left (heading, an optional product filter, default search radius, search box and Use my location toggles, layout) and a map of the United States with clustered pins and a list of stores in the preview

The block's settings:

SettingWhat it does
HeadingThe title above the search, "Find a store near you" by default.
Only show stores that carryOptional (Pro). Pick a product to show only the locations that stock it.
Default search radiusHow far a search reaches, in the unit set in the app (miles or km).
Show search box, Show "Use my location" buttonTurn either off if you do not want it.
LayoutMap left, map right or map on top, with a height and an optional maximum width.
Map style, colours, corner radiusLight, 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.

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.

  1. Open Products from the Store Locator page.
  2. Click Choose product and pick a product.
  3. Tick every location that carries it. The filter box narrows the list by name, retailer or city.
  4. Under Stock at checked locations, choose a Stock state, and a Quantity if you show exact quantities.
  5. Click Save.

The Products page with Saffron Ochre Zellige 2x6 chosen and assigned to 18 locations: a list of stores with checkboxes, and a Stock at checked locations card with a stock state and an optional quantity

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 modeWhat shoppers seeUse it when
Stocked / not stockedWhether the store carries the productYou do not get sell-through data from retailers.
Low / medium / highA stock bandA weekly feed, where exact counts drift.
Exact quantityThe number on handA 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 Settings page: the Stock display card with the three display modes and the stale-after setting, and the Map defaults card with distance unit, default radius, default centre and default zoom

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.

  1. In the theme editor, open a Product template from the page selector.
  2. In the product information section, click Add block, open the Apps tab and pick Where to buy.
  3. 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.

  1. 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.
  2. Click Show next to API reference for the exact endpoint URLs for your store and example requests.
  3. Send requests with Authorization: Bearer <token> and Content-Type: application/json:
    • PUT .../v1/locations with { "locations": [...] } adds or updates locations, matched on external_id (on every plan).
    • PUT .../v1/inventory with { "items": [...] } sets stock per location and product: location_external_id, product_id (a GID or numeric ID), and optionally variant_id, stock_state (stocked, out, low, medium or high) and quantity (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.

On this page