Magento Store Locator Extension

Create your Store Locator extension
Why give shoppers a way to find your shops
If your Magento store also sells through shops, showrooms or dealers, some shoppers will want to see a product in person before they order. A locator answers “where can I go?” on your own website: a map, a searchable list and a card for every location with hours, contacts and buttons to call or get directions. It needs no map API key either – the map is built on OpenStreetMap data.
The closest store, at the top of the list
Shoppers search by ZIP code, street or store name, and your own locations come up first, followed by places from the general map. Once they allow access to their location, the list reorders itself from near to far, every card shows how far away the store is, and the map centers on them.
Your dealer network from a single spreadsheet
Import from CSV fills the locator from the Elfsight CSV template: move the list your team already keeps for stores, dealers or partners into it. To change many entries at once, export the list, edit it and import it back. When you open one more store, Add from Google Maps finds it by name and address and fills in the card; a spot with no street address can be placed by its coordinates.
Open now, closing soon or closed for the holiday
Each location gets its own hours for every day, a 24-hour option and date-specific hours for holidays, either closed or with custom times. Every location keeps its own time zone, so the Open, Closed and Closes soon labels match local time, and an Open Now filter hides the stores that are closed.
Call, book or get directions from the card
Each card can carry buttons to call, message, share, book, order or view pricing, plus buttons for services such as WhatsApp and Yelp. Get Directions opens the route in Google Maps. More services can be connected in the editor, grouped into eight categories from reviews and messengers to bookings and delivery.
Key Features for Retail Chains and Dealer Networks
- Nearest-location search – shoppers look up stores by ZIP code, address or name, or share their location to sort the list by distance.
- Business hours and open status – daily schedules, holiday hours and a time zone for every location.
- Action buttons and integrations – calls, bookings, orders and directions straight from the location card.
- CSV import and export – load up to 1,000 locations from a file of up to 100 MB, or add them one by one.
- Filters – tags and categories let shoppers narrow the list, shown inline or in a side panel.
- Two layouts – List and Map puts the list beside the map; Catalog shows a grid of cards that open with a map of their own.
You can test all capabilities of the widget in the free editor.
Built for the Magento Admin
- Added from the Admin, not the command line – the locator goes into a Page Builder element or a CMS block, with no composer step and no developer time.
- One locator, many pages – save it once as a CMS block and show it on a stores page, on product pages or wherever your theme offers a container.
- A locator for each store view – give every regional store view its own locator, in its own language and with distances in miles or kilometers to match.
- One place for every change – add a store or update its hours in the Elfsight editor and publish; each page with the locator shows the change, with nothing to edit in the Admin.
How to add the Store Locator to Magento
Add your locations in the Elfsight editor – one at a time or from a spreadsheet file – then press Add to website for free and copy the installation code. Give the locator a page of its own with Method 1 or 2 – with or without Page Builder – or reuse it on other pages with Method 3.
Good to know: the locator sits inside the page content, so set its size in the editor first – Full Width or a fixed width, plus a separate height for phones. Page Builder may display the element without loading the map, so judge the result on the storefront.
Method 1: Create a locations page in Page Builder
- Open Content → Pages in the Admin and click Add New Page, or pick an existing page with Select → Edit.
- Give the page a title such as Our Stores and expand the Content section.
- From Elements in the Page Builder panel, drag HTML Code into a row or column.
- Click the gear icon on the element, paste the code and save the element settings.
- Click Save & Close, refresh the invalidated cache if a message asks for it, and choose Actions → View to see the map.
Method 2: Put the map on a page through the HTML view
- Open the page in Content → Pages and expand the Content section.
- Click Show / Hide Editor so the field shows raw HTML instead of formatted text.
- Drop the snippet into the HTML below your intro text.
- Click Save, then open the storefront version of the page to check the map.
This route suits Magento Open Source before 2.4.3 and stores that have Page Builder switched off.
Method 3: Reuse one block on product pages and beyond
- In Content → Blocks, click Add New Block, set Enable Block to Yes, and add a title, an identifier such as
store_locatorand the store views. - Paste the code into an HTML Code element, or into the HTML view if you don’t use Page Builder, and save the block.
- For a single page, add a Block element in Page Builder, open its settings, select your block and save.
- For many pages, open Content → Widgets → Add Widget, choose CMS Static Block and your theme, then set Display on – for example, All Product Types – and pick a container.
- Under Widget Options, select the block, save the widget and refresh the cache when the Admin asks.
Containers come from your theme, so the exact spot on product pages can differ.
Once it’s live, search for a postcode you know and tap a couple of buttons on a location card to make sure calls and maps open as expected. If you’d rather not do it yourself, our support team can help with the installation.