Magento 2 Advanced Store Locator

Installation and User Guide for Magento 2 Advanced Store Locator

Table of Contents

  1. Installation
    • Installation via app/code
    • Installation via Composer
  2. Configuration Settings for Advanced Store Locator
    • General Settings
  3. Store Locator Region Management (Admin)
    • Accessing Region Management
    • Creating a New Region
    • Editing Existing Regions
    • Deleting a Region
  4. Store Management & Region Association (Admin)
    • Accessing Store Management
    • Creating a New Store
    • Editing Existing Stores
    • Deleting a Store
  5. Store List Display on Frontend (Customer)
    • Viewing Stores Within a Selected Region
    • Viewing All Stores (Without Region Selection)
  6. Store Detail View (Customer)
    • Accessing Store Detail View
    • Understanding the Layout
    • Detailed Store Information

Installation

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer

Configuration Settings for Advanced Store Locator

Go to Admin > Stores > Configuration > Scommerce Configuration > Store Locator

General Settings

image (236).png

Store Locator Region Management (Admin)

This section outlines how administrators can create, edit, and delete regions to categorize your store locations effectively.

1.1. Accessing Region Management

To begin managing your store locator regions:

  1. Navigate to Admin > Stores > Scommerce Store Locator in your Magento 2 Admin sidebar.
  2. From the menu, select Store Regions.

image (237).png

1.2. Creating a New Region

Follow these steps to add a new region to your store locator:

image (264).png

image (239).png

1.3. Editing Existing Regions

To view or modify details of an existing region:

image (266).png

1.4. Deleting a Region

You can remove regions from your system, provided no stores are currently assigned to them:

image (265).png

image (267).png

1.5. Mass Action to Activate/Deactivate/Delete Regions

Go to Admin>Stores>Scommerce Store Locator>Store Regions select the regions that you want to Deactivate/Activate/Delete. Next click on the mast action button and then select the action as shown below:-

image (267).png

1.6. Import Regions

Go to Admin>System>Data Transfer>Import.

From the Entity Type dropdown select "Scommerce Store Locator Regions"

image (278).png

image (280).png

select the import file and other settings as needed then

// Sample Import File

Name,Description, Image
Greater London,"The metropolitan area surrounding London, known for its diverse neighborhoods and vibrant commercial activity.", “greater-london.jpg“
West Midlands,"A central region in England known for its industrial heritage and growing retail hubs.", “west-midland.jpg“
North West,"Encompasses major cities like Manchester and Liverpool, with a mix of urban and suburban retail locations.", “north-west.jpg“

2. Store Management & Region Association (Admin)

This section describes how administrators can create, manage, and associate individual store locations with the regions you've defined.

2.1. Accessing Store Management

To manage your store locations:

  1. Navigate to Admin > Stores > Scommerce Store Locator in your Magento 2 Admin sidebar.
  2. From the menu, select Store Locations.

image (243).png

2.2. Creating a New Store

Follow these steps to add a new store location:

image (244).png

image (255).png

image (256).png

2.3. Editing Existing Stores

To modify details of an existing store, including its assigned region:

image (257).png

2.4. Deleting a Store

To remove a store location from your system:

image (258).png

image (259).png

2.5. Mass Action to Activate/Deactivate/Delete Store Locations

Go to Admin>Stores>Scommerce Store Locator>Store Locations select the stores that you want to Deactivate/Activate/Delete. Next click on the mast action button and then select the action as shown below:-

image (281).png

2.6. Import Stores

Go to Admin>System>Data Transfer>Import.

From the Entity Type dropdown select "Scommerce Store Locator Stores"

image (282).png

select the import file and other settings as needed then

image (283).png

// Sample Import File

Name,Address,Description,Region,Email,Phone,Working Hours,Longitude,Latitude,Days Open
London Central Store,"221B Baker Street, London NW1 6XE","Flagship store near Regent's Park",Greater London,central@storeuk.com,+44 20 7946 0011,"Mon–Sat: 9am–7pm",-0.1586,51.5237,"Monday–Saturday"
Croydon Outlet,"45 High Street, Croydon CR0 1QD","Discount outlet with parking",Greater London,croydon@storeuk.com,+44 20 8760 1122,"Mon–Fri: 10am–6pm",-0.1004,51.3762,"Monday–Friday"
Stratford Hub,"Westfield Stratford City, London E20","Modern store in shopping centre",Greater London,stratford@storeuk.com,+44 20 8221 3344,"Daily: 10am–8pm",-0.0064,51.5430,"All week"
Birmingham City Store,"12 New Street, Birmingham B2 4RQ","High-traffic location near Bullring",West Midlands,birmingham@storeuk.com,+44 121 633 4455,"Mon–Sat: 9am–6pm",-1.8998,52.4797,"Monday–Saturday"
Coventry Retail Point,"88 Broadgate, Coventry CV1 1NB","Family-friendly store with café",West Midlands,coventry@storeuk.com,+44 24 7655 9988,"Tue–Sun: 10am–5pm",-1.5105,52.4081,"Tuesday–Sunday"
Manchester Arndale,"18 Market Street, Manchester M4 3AT","Located in the heart of the city",North West,manchester@storeuk.com,+44 161 832 7788,"Daily: 9am–8pm",-2.2417,53.4839,"All week"
Liverpool One Branch,"Paradise Street, Liverpool L1 8JQ","Stylish store with seasonal offers",North West,liverpool@storeuk.com,+44 151 707 2233,"Mon–Sat: 10am–7pm",-2.9840,53.4045,"Monday–Saturday"
Preston Suburban Spot,"5 Fishergate, Preston PR1 2NJ","Quiet location with easy access",North West,preston@storeuk.com,+44 1772 555 900,"Wed–Sun: 11am–5pm",-2.7034,53.7590,"Wednesday–Sunday"

3. Store List Display on Frontend (Customer)

This section describes how customers will interact with the Store Locator on your website's front-end.

3.1. Viewing Stores Within a Selected Region

Customers can easily find stores by filtering them by region:

  1. Navigate to the Store Locator page on the front-end (typically via a link in the header or footer). {root_path}/storelocator.
  2. On the left-hand side of the page, a navigation panel displays a list of available regions.
  3. Click on any region name from this list.
  4. The main content area will refresh to display only the stores associated with the selected region.
  5. Each store entry will show:
    • A small Google Map snippet based on the store's address.
    • The Store Name.
    • The Store Address.
  6. Pagination: If there are many stores within a selected region, they will be paginated. Stores are sorted alphabetically by default. You can navigate through the results using the "Next" and "Previous" controls.
  7. No Stores in Region Message: If a selected region currently has no stores assigned, a message will be displayed: “There are currently no stores available in this region. Please check back later or select another region from the list."

image (285).png

3.2. Viewing All Stores (Without Region Selection)

The Store Locator also allows customers to view all stores without initially filtering by region:

  1. Navigate to the Store Locator page (without selecting a specific region). This typically happens when a user clicks on a general "Stores" or "Store Locator" link.
  2. Layout Adaptation:
    • If no stores in the system have an associated region, the layout will automatically be full width, as there's no need for the left-hand region navigation.
    • If at least one store is linked to a region, the available regions will still be displayed in the left-hand navigation panel, even when viewing all stores.
  3. The main content area will display a list of all available stores.
  4. Each store entry will show:
    • A small Google Map snippet based on the store's address.
    • The Store Name.
    • The Store Address.
  5. Pagination: Stores are paginated and sorted alphabetically. The pagination threshold can be configured by the admin in the module's backend settings. Users can navigate through paginated results using "Next" and "Previous" controls.
  6. No Stores Message: If there are currently no stores in the system, a message will be displayed: “There are currently no stores available. Please check back later."

image (284).png

4. Store Detail View (Customer)

This workflow describes how customers can access and view detailed information for a specific store.

4.1. Accessing Store Detail View

  1. From any store list display (either filtered by region or showing all stores), click on the name of a specific store or an associated "View Details" link.

4.2. Understanding the Layout

4.3. Detailed Store Information

The store detail view provides comprehensive information about the selected store, including:

4.4. Navigating Back

To return to the store listing:

  1. Click the "Back to Stores" link or button. This will navigate you back to the previous store listing page, whether it was filtered by region or showing all stores.

image (286).png

If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact support@scommerce-mage.com.


Revision #10
Created 30 June 2025 12:39:30 by scommerce
Updated 24 October 2025 10:05:28 by scommerce