/magento2-module-store-locator

Magento 2 store locator module

Primary LanguagePHP

Smile Store Locator

This module adds a store locator to the website. You can search a retailer on map.

Requirements

The module requires:

How to use

  1. Install the module via Composer:

composer require smile/module-store-locator

  1. Enable it:

bin/magento module:enable Smile_StoreLocator

  1. Optionnal : Drop old SMILE_RETAILER_ADDRESS_RETAILER_ID unique key:

if you already used older Smile_StoreLocator module on your projects, and you want to upgrade it, before upgrading, you will have to DROP your current UNIQUE KEY from table smile_retailer_address : SMILE_RETAILER_ADDRESS_RETAILER_ID This is necessary in order to get a db_schema.xml working correctly.

ALTER TABLE smile_retailer_address DROP INDEX SMILE_RETAILER_ADDRESS_RETAILER_ID

  1. Install the module and rebuild the DI cache:

bin/magento setup:upgrade

How to configure

Stores > Configuration > Services > Smile Map > Map Settings

Maximum number of visible stores: Above this limit, the list of stores will be not display

Add autocompletion

To add autocompletion you need to add this module:

RetailerSearch /!\ be careful with dependencies