Docs / Storefront
Storefront widget
Add the locator with a theme block, a floating button, or two lines of HTML on any site.
Theme app block
In the theme editor, add the Store locator block to any section. On Plus and above, a product template can show the locator filtered to retailers linked to that product. These links are managed by you; they do not reflect live inventory.
Floating button
Switch on the Floating store finder app embed to show a “Find a store” button on every page of your store.
Embedding outside Shopify
This is for websites that aren’t your Shopify store. On your Shopify store, use the theme app block or the floating button above; you never need to edit theme code.
Every store also gets a hosted locator page at https://app.mapstockist.com/s/{your-store} that you can link to from anywhere. Or paste this on any website (the app shows the snippet with your store filled in at the bottom of Appearance):
<div id="stockist-locator" data-shop="my-store"></div>
<script src="https://app.mapstockist.com/widget.js" async></script>
Optional attributes:
| Attribute | Effect |
|---|---|
data-mode="floating" |
Show a floating “Find a store” button |
data-product="{{ product.handle }}" |
Only show retailers linked to a product (Plus and above) |
data-lang="fr" |
Pick a translation |
How the map behaves
- The map opens on your stores. If your default map center (in Appearance → Search) would show none of them, the locator frames your stores instead, so shoppers never see an empty map first. New stores start with the map centered on their own country.
- Scrolling the page over the map scrolls the page. To zoom, shoppers hold Ctrl (⌘ on a Mac) while scrolling, pinch on a trackpad or phone, or use the + and − buttons. A short hint says so.
- If the connection drops while the locator loads or searches, it tries again on its own. If it still can’t load, it shows a Try again button.
Place search availability
Submitted searches for a city, ZIP, postcode, or address use a place lookup service separately from store-address imports. Autocomplete suggestions come from your existing locations; “Use my location” and map movements do not need an external place lookup. If a place cannot be located or the service is temporarily unavailable, a message explains that results match names and addresses instead. Shoppers can also choose Use my location.
Provider credits remain visible even when MapStockist branding is hidden or the locator shows only a list. The fallback messages can be translated in Translations and labels.
Appearance
In Appearance, choose from 5 layouts and edit labels on every plan. Theme colors require Plus or above. The 6 map styles also require Plus or above and your own Google Maps key or Mapbox token. Custom CSS and removing MapStockist branding require Premium.
On Basic and above, set a pin icon and color for each filter under Filters. General theme color controls, such as Primary color and Pin color, require Plus or above.
The widget comes in English. To show it in other languages, add a translation of the labels for each language under Translations and labels; the widget picks the one that matches your storefront’s language.
Maps
The included map works with no setup and no API key. It covers 50,000 map views a month per store, counted each time the locator or a location page shows a map. The count resets on the 1st of each calendar month (UTC). These are the default allowance and grace settings.
- At 80% of the allowance (40,000 views), the app shows a warning on its overview page.
- Above 50,000 views, the map keeps showing within a 20% grace margin.
- At 60,000 views, your locator shows the list and search without a map until the 1st. Shoppers can still find stores.
Use your own key on any plan. MapStockist doesn’t limit these views. Your provider’s charges and limits still apply. In Appearance → Map, choose a provider:
| Provider | What to add | Notes |
|---|---|---|
| Google Maps | A Maps JavaScript API browser key | Restrict it to your store’s domains in Google Cloud. Google bills you directly. |
| Mapbox | A public token (starts with pk.) |
Restrict it to your store’s domains in your Mapbox account. Mapbox bills you directly. |
On Plus and above, your own Google Maps key or Mapbox token also lets you choose a map style: standard, light, dark, streets, outdoors, or satellite. MapStockist does not count views served with your own key on any plan. If that map cannot load, the widget tries the included map when its allowance remains; otherwise, it shows the list without a map.