How to Build a Store Locator on Shopify for Brands Sold in Dispensaries
A Shopify store locator has two parts: a list of retailers you can edit in the Shopify admin, and a map that reads from that list. On Kushface the list is a Shopify metaobject and the map is Mapbox. Blackleaf’s map shows 27 retailers across Washington.
Why a Product Brand Needs One
If your product sells in dispensaries, the customer on your site is ready to buy and needs to know where. The locator answers that. On Blackleaf, a strain page shows the flower and the locator shows which shops carry the brand. The cart on the site is for merch.
App or Custom
| Locator app | Built into the theme | |
|---|---|---|
| Cost | A monthly fee to the app | Part of the theme build |
| Retailer list | Kept in the app | Kept in Shopify, in your own data |
| Map style | The app’s map with a few color options | Any style, matched to the brand |
| Layout | A block the app places on a page | Designed with the rest of the store |
Go with an app if you need a map on the site next week. Go custom if the map is one of the main reasons people visit your site.
The Steps
- Put the retailers in Shopify. I use a metaobject, which is Shopify’s way of storing your own kind of record. Each retailer is one entry with at least a name and an address. You find metaobjects in the Shopify admin under Settings, then Custom data.
- Turn each address into coordinates. A map needs a latitude and longitude for every pin. Mapbox and Google both have a service that converts an address.
- Draw the map. The theme reads the list and hands it to Mapbox, which draws a pin for each retailer.
- Style it to the brand. Blackleaf is a dark brand, so its map is dark too.
- Think about a list beside the map. Some people would rather scroll than pan, and a list is easier to use on a phone.
Keeping It Current
On Kushface, adding a shop is a form in the Shopify admin. Type the name and address, save, and the pin appears on the map. The owner can do that without calling me.
That’s the main reason I store the list in Shopify. A locator goes stale fast when every change has to go through a developer.
What It Costs
Mapbox has a free tier, and you pay if traffic outgrows it. Locator apps charge a monthly fee, and the Shopify App Store shows the current price for each. In a custom storefront from me, the locator is part of the build, which starts at $9,500.
You can open both: Kushface and Blackleaf.
Questions People Ask
- Can I update the retailer list myself?
- Yes, when the list is stored in Shopify. Kushface's retailers are entries in a Shopify metaobject, so adding a store is a form in the admin.
- Mapbox or Google Maps?
- I used Mapbox on Kushface and Blackleaf because I could restyle the whole map to match each brand. Both services have a free tier, and you pay if traffic outgrows it.
- Do I need an app for a store locator?
- No. An app is the quick route. A locator built into the theme reads from your own data and looks like the rest of the store.