View Product Page

Store locator page

To work correctly, the plugin automatically creates the Store Locator page on your site through the shortcode [yith_store_locator].

Store Locator Page shortcode

The plugin offers different options to help you set your store locator page style. To do it, go to YITH -> Store Locator -> Store locator page tab where you will find four tabs to start configuring the options according to your needs.

From the tab General, you can enable the full-width layout and define the side and margins by entering the values (in px).

Store Locator page - General settings
Full-width layout
Configure store locator page layout-2

The available options are:

  • Page layout: select the position of map and search results choosing from Map right and Map left;
  • Map width (in %): enter the width of the map as a percentage. The default one is 65. Based on the value inserted, the width of the search results list will be calculated dynamically;
  • Map height (in pixel): enter the height of the map in pixels;
  • Show results in: select whether you want to  show results in a single column or two columns;
  • Scrollbar colors: choose the colors for the scrollbar used to navigate in results;
  • Scrollbar width: enter the value for the scrollbar width (in pixel) for the results section.

Search settings

From the Search tab, you can configure all the settings related to the search box and filters that will show on your store locator page. You can choose to show or hide the search bar and/or use the instant search. Let’s analyze all the available options.

Store Locatore page - Search settings
  • Search bar and filters position: select the default position of the search bar and filters. You can choose from above or beside the map.
  • Show the search box: if enabled, the search bar will show on the store locator page and you will be able to configure all the following options:
    • Search form colors: choose the background and text colors of the search form;
    • Enter a text to display inside the search form: enter the placeholder address/city for the search bar;
    • Upload icon for search bar: this allows uploading a custom icon to show in the search bar;
    • Enter a title for “search” feature: enter the title you want to show above the search bar.

Instant search

If you want the search results to load automatically without the need for users to click on the Search button, enable the option Use instant search.

Use instant search

On the contrary, if you prefer to show the Search button to let users get the results of their search, disable the Use instant search option and configure the text and colors of the button through the options shown below.

Search button settings

Geolocation settings

To give users the possibility to use their position automatically for the search, you must enable the option Use geolocation in Geolocation settings.

Enable geolocation for Store Locator

You can decide to use a button or a text link to let users activate their geolocation. Text, button, and icon can be customized through the options available.

Geolocation style settings
User's geolocation on frontend

If you want to show the users’ position automatically, you must enable the Enable auto geolocation option. After activating it, users will get an alert when opening the store locator page.

Auto geolocation option

View all stores

To show users the button View all stores on your store locator page, you must enable the Show View all stores button option.

View all stores text

You can decide to use a button or a text link to let users view all the stores in the results list. Text, button, and icon can be customized through the options available.

View all stores button
View all stores button on frontend

Filters

All the settings for the filters can be configured in the Filters section.

First of all, you must create the filters as described in this guide. After creating them, you can decide whether to show them or not on the store locator page by enabling or disabling the option Show filters. When enabled, the plugin will allow you to set the following options:

  • Filters display mode: select Opened in the page if you want the filters to show already opened or Dropdown style if you want to show a dropdown;
Filters on frontend - opened
Opened
Radius on frontend
With dropdown
  • After the search: select if you want to keep the filters opened or hide them and show a link to open them;
  • Show “active filters” text: enable if you want to show the active filters after the search. If enabled,  you can enter a text to identify the active filters.
Active filters
Active filters on frontend

Radius filter

To give users the possibility to highlight a specific radius on the map you will be able to do it through the option Show radius filter (enabled by default). You can choose to show the distance in the map as KM or Miles through the Distance unit option.

Radius

You can set a default value for the radius by selecting it in the terms you have configured.

Radius filter terms
Radius on frontend

Set the option Show radius filter to NO, if you don’t want to show the radius filter.

Map settings

To configure the map settings, go to Store locator page -> Map tab and choose whether to show the map on your store locator page or not. By setting the option Show the map to ON, you will be able to configure the following options:

Map settings
  • Map position: define the position of the map and search results by showing the map on the right or on the left;
  • Map width (in %): set the width of the map as a percentage to calculate the list of search results automatically. Default value: 65;
  • Map height (in pixel): set the width of the map (px).
Default map settings
  • Default map position: define the default map position by using Google suggestions;
  • Default map type: select the map type to show. Options available: roadmap and satellite;
  • Default map zoom: this allows defining the default zoom for the store locator map;
Map scroll and default icon
  • Map scroll type: select how to scroll the map of the store locator (with Mouse wheel+ctrl or Mouse wheel);
  • Default icon for user’s position on the map: choose the icon to identify the user position in the map from the default one or by uploading a custom icon;
  • Default icon for store in the map: choose the icon to identify the store position in the map from the default one or by uploading a custom icon. This can be overridden if you want to use a different icon for each store;
  • Map style: here, you can use the JSON code provided by Google for your custom style. Go to https://mapstyle.withgoogle.com/ and click on Create style

Select the theme and click on Finish.

Now copy the JSON…

and paste it into Map style option.

Custom map style

Pin info modal settings

To set the store information that you want to show in the modal on the map, go to Store locator page > Map.

Firstly, you can choose whether to show the modal or not. By enabling the option Show the info modals, you will need to set the following options:

Pin info modal on the map
  • Open the modal at: choose if you want to show the modal when users Click on pin or Mouse hover;
  • Modal width: set the width of the modal (in px). Based on the value you insert, the height will apply dynamically;
  • Modal colors: choose the colors for the background and the text of the pin modal;
  • Border radius: set if you want to show a circle box rather than the rectangular box. For the latter, set to 0.
Pin info modal settings
  • Show store name: enable this option if you want to show the store name within the pin modal;
  • Show store description: enable this option if you want to show the store description within the pin modal;
  • Show store address: enable this option if you want to show the store address within the pin modal;
  • Show store contact info: enable this option if you want to show the store contact info within the pin modal;
  • Show get direction link: enable this option if you want to show the store direction link within the pin modal;
  • Show contact link: enable this option if you want to show the store contact link within the pin modal;
  • Show visit website link: enable this option if you want to show the store website link within the pin modal.
Pin info modal on the map

Radius circle

From the Store locator page -> Map tab in the plugin panel, you can also choose to show or hide the radius on the map and configure its colors and border weight through the options shown below.

Show radius circle on the map
Radius circle on the map

General settings

To work correctly, the plugin automatically creates the Store Locator page on your site through the shortcode [yith_store_locator].

Store Locator Page shortcode

To start configuring the style of the page, go to the tab Store locator page > General.

Store Locator page - General settings

Here, you will be able to choose whether to show the page with a full-width layout or not and set the side margins (in px).

Search results

You can customize both the title of the results list and the text to show when the search doesn’t generate results through the options that you find in the Search results section of the Search tab.

Search results options