Store Locator¶
Overview¶
Developed by Mageplaza experts, Store Locator is one of the best extensions that allows customers to purchase the desired products in the nearest store with ease. Integrated with Google Maps and GPS, everything becomes easier for customers in finding the nearest shop location.
Especially, if customers want to be active in getting their orders. Store Pickup function allows them to choose the nearest store and time to pick their purchased items. Moreover, it comes with many powerful functions, we sure that you will be satisfied with the benefits that this module brings. Let’s experience it right now!
Download and Install¶
How to use¶
- Customers can see a list of all the addresses of the store branches
- Customers can quickly search any store in a certain area. For example, when a customer searches in Washington, all stores in the selected radius in Washington will be displayed.
- Customers can zoom in, zoom out Map as well as can change the store search radius
- By clicking on the detail, customers will see detailed information about the Store and can use the directions to the selected store
- Checkout page: show the detail information including store location, shipping fee and pickup time after that customer can get their items. Please make sure that the products in cart have the same addresses as store locator. If not, the error message will be shown. coressponding to the ordered products. Click Select Store to show popup.
- Click Select Store to show popup. In here, customer should choose the location and time to pick their items up.
- Note: Only show the opening time of stores. The time waiting for order is available or the closing time of store will be hiden, customers cannot choose them. Then click Submit button to confirm the store location and time to pickup items. Click Cancel to quit the popup.
- Frontend Order: Record the order data: time, location, shipping fee customers choose to get their items.
How to configure¶
There’re 2 ways to access the menu of the extension:
Content > Store Locator
- Enable Mageplaza Menu, all extensions of Mageplaza you are installing will be displayed in this menu:
1. Configuration¶
1.1. General¶
Enable
: Choose Yes to enable this moduleTitle
:- Enter the title for the page
- Title plays a role as label of the link that accesses the page
- If you leave this field blank, the default is Find a store
Description
: Enter the desciption for the pageDefault website
: Enter the default website for the store. With stores that have multiple branches, admins can quickly synchronize the website with this itemHead Background Image
: Upload the background for the head blockHead Icon
: upload icon for the head blockURL Key
:- Enter the link to access the page
- If leaving this field blank, the default is
find-a-store
Display Link On
: Select where the link can be displayed on the frontendEnable Get Direction
: Select Yes to enable the directions to the store when customers wantEnable Pagination
: If Yes, pagination will be displayed when you have thousands of stores. It will improve customer experience significantly.Enable Search By Area
: If Yes, the Search By Area feature will be displayed in the store information map, enabling customers to search for stores more quickly based on where customers are, including fields such as Store Name, Street Address, Country, City, Zip/Postal Code, State/ Province. Click the Reset button to reset and display all stores.
Enable Favorite Store Bookmark
: If Yes, will display a star next to the store locations so customers can bookmark their favorite store, which will be displayed first to reduce the time to find and choose the right store.
- Image: Upload image to replace the star marking the favorite store
- Show Product quantity at relevant store locations with Assigned MSI Stock: If Yes, will display the product quantity and stock status at each store location of the selected product on the product page. To show the quantity of the products at each store as below, store owner needs to turn on the MSI Stock and Assign Source in each product’s setting.
- Enable Store Locator when the product is out of stock: If Yes, will display the store locator when the product is running out of stock on the product page.
1.1.1. Filter store¶
Enable
: Select Yes to enable the search feature.Auto-Filter by current position
: Select Yes so that customers can move the maps back to their position by one click in the search box:
1.1.2. Store Pickup Option¶
- Enable Store Pickup Option Checkbox: If Yes, will display a checkbox for customers to check if they want to pick items up at a convenient location, in case of difficult-to-find store location or distant contact requirements.
- Store Pickup Option Label: Show label of the Store Pickup Option Checkbox
- Enable Store Pickup Notes and Conditions: If Yes, will display the necessary information about pickup procedures, contact information, etc. to customers for better preparation.
- Content:
- Custom Content: Show the Custom Content field for the store owner to edit the content in the Store Pickup Notes and Conditions section.
- CMS Static Block: Show the CMS Static Block field for the store owner to select the available blocks for the content in the Store Pickup Notes and Conditions section.
1.2. Map Settings¶
Google Map API Key
: In order for Google Map to obtain the coordinates of the locations that admins have added, admins need to enter the Google Map API Key into this section.Map Style
:- We provide 4 most popular Style Maps for admins to choose
- Admins can only select one style at the same time
- Admins can also custom the maps as they want by themselves. Admins can add
Map Style
as the guide in the last section of this page.
Zoom Default
:- Set map zoom factor (count by %)
- We recommend a zoom factor as 12%
Filter Radius
:- Install the search radius store from the customer location that they can use
- Radiuses are separated by commas
- For example:
10,20,50,100
Default Radius
:- Set default search radius store from customer location. When the client accesses the page, the map will filter the stores near them in this radius
- This number may be different from the number entered in
Filter Radius
field - If you leave this field blank, the default radius is 6731 miles (the same as the radius of the earth)
Distance Unit
: Admins can choose the unit distance asMile
orKilometer
depending on the localMarker Icon
:- Select the icon representing the location of the store on the map
- As it doesn’t resize itself, admins need to put the icon with the size as 20x20 px before uploading
1.3. Store Time Default¶
- Admins can set the timezone and opening time for each item of the week for all stores. These values are only default values. They are only applied when admins click the
Use Config
button when theyAdd New Location
1.4. SEO¶
You can configure the meta that is useful for your better SEO
Meta Title
: Set Meta title for posts list page (Blog Page)Meta Description
: Set Meta description for posts list pageMeta Keyword
: Set Meta keywords for posts list pageEnable Local SEO
:
2. Locations¶
2.1. Grid¶
- This is a place to store all store locations that are created
- From the Grid, admins can capture the basics of Store Location such as ID, Name, Visibility, Store View, City, Zip Code, Country, Sort Order, Create Date and Action that can be done with Store Location.
- In the
Actions
dialog, admins can execute the following actions:Delete
: Admins need to tick Store Location to delete, then selectDelete
in theActions
(upper left of the Grid) to delete. A confirmation dialog will appear, selectOK
to continue deletingChange Visibility
: Admins need to tick Store Location to change the status, then selectChange Visibility > Yes/No
in theActions
dialog (top left of the Grid) to change. A confirmation dialog will appear, selectOK
to confirm the change
- In the
Action
column, admins can click onEdit
to modify the Store Location - In addition, admins can Filter, Change Store View, hide/show Columns, Export Grid or edit inline
2.2. Add New/Edit Store Locator Order form¶
2.2.1. General¶
2.2.1.1. General¶
Name
: The name entered here is displayed in both the backend and the frontendVisibility
: Select Yes so that store locator is displayed on the frontendDescription
: Record a short description for the storeURL Key
:- Enter the link to access the location
- If left blank, after you Save, based on the
Name
field, URL key will automatically create (unless Name is a hieroglyphic as Russian, Japanese, Korean, Chinese, etc)
Store View
: Store Location is only available in the selected Store ViewSort Order
:- Stipulate the display order of the Store Location on the Frontend
- 0 is the highest position
2.2.1.2. Store Pickup Option¶
- Enable Store Pickup Option Checkbox: If Yes, will display a checkbox for customers to check if they want to pick items up at a convenient location, in case of difficult-to-find store location or distant contact requirements. If you select Use Config, that Store Location will take the value you set in the Configuration section.
- Store Pickup Option Label: Show label of the Store Pickup Option Checkbox
- Enable Store Pickup Notes and Conditions: If Yes, will display the necessary information about pickup procedures, contact information, etc. to customers for better preparation.
- Content:
- Custom Content: Show the Custom Content field for the store owner to edit the content in the Store Pickup Notes and Conditions section.
- CMS Static Block: Show the CMS Static Block field for the store owner to select the available blocks for the content in the Store Pickup Notes and Conditions section.
2.2.2. Location¶
2.2.2.1. Address Information¶
- Fill in the store location’s address information in these fields
- After entering the correct address, admins click on
Get GPS coordinates
to automatically get coordinates and display on Maps
2.2.2.2. Review Map¶
- The coordinates of the store location are shown here
- They can be obtained automatically when admins
Get GPS coordinates
, admins can also manually fill - The coordinates change with the marker icon when it moves to another location, however the information on the address above (street, city, etc.) will not change.
2.2.3. Time¶
2.2.3.1. Open Hours¶
2.2.3.2. Holiday¶
- Holidays created under
Content > Store Locator > Holidays
will be displayed in this section - The selected holidays will be applied for the store. Opening times on the Frontend will change from Open to Close on holidays
2.2.4. Contact¶
- Admins can enter their contact information to display on the frontend
- Basic information includes: phone number, website address, fax number and email address
2.2.5. Images¶
- Admins can upload typical images of the store to display on the Frontend.
- The uploaded first image is displayed on the store locator page, the remaining images is displayed as a slider when the customer clicks on the location detail.
2.2.6 Available Products¶
- Show on Product Page: Select Yes to allow showing specific store can be picked up on Product Page. For each Product page, customer can click to
See available pickup stores
to check in which stores that product is available.
- Selected Product: This part records the information of products within related stores. Admin can search, filter product ID, SKU, Price in the Grid. Admin can add products to each store locator.
2.3. Manage Holidays Grid¶
- This is a place to store all the Holidays that admins installed for store
- From the Grid, admins can capture basic Holiday information such as: ID, Name, Status, No. of Locations, Create Date and Action that can be done with Holiday
- In the
Action
dialog, admins can execute the following actions:Delete
: Admin need tick tick Holiday to delete, then select delete in the Actions (upper left of the Grid) to delete. A confirmation dialog will appear, select OK to continue deletingChange Status
: Admins need tick tick Holiday that they want to change status, then, chooseChange Status > Yes/No
in theAction
dialog (top left of the Grid) to change. A confirmation dialog will appear, selectOK
to confirm the change
- In the
Action
column, Admin can click Edit to modify Holiday information - In addition, admins can Filter, Change Store View, hide/show Columns, Export Grid or edit inline
How to add Map Style¶
- Step 1: Choose
Map Style = Custom
- Step 2: Click here in the comment. The link will be lead to https://snazzymaps.com/
- Step 3: Click on Map Style that you want. For example:
Lost in the desert
- Step 4: Expand Code and Copy JAVASCRIPT STYLE ARRAY into the Custom checkbox in the configuration
- Step 5: Save and check on the frontend
Mageplaza Store Pickup¶
1. Configuration¶
Login to the Magento Admin, choose Stores > Configuration > Sales > Shipping Methods > Mageplaza Store Pickup
.
- Enable: Select Yes to enable using the Shipping Methods feature with Mageplaza Store Pickup.
- Title:
- Enter the title for the Shipping Methods type with Mageplaza Store Pickup.
- If left blank, the default is Select Store to pickup.
Method Name:
- Enter a name for this Shipping methods type and will appear on Shipping methods when the customer checkout.
- If left blank, the default is Store Pickup.
Price: Enter the price for shipping methods. If left blank, the ship price will default to 0.
Calculate Handling Fee: Select the Handling Fee for the shipping methods, this price will be added to the Price field and displayed in shipping methods when the customer checkout. With two Handling Fee types:
- Fixed: Shipping methods will be calculated according to the price and handling free fields as follows: Price + Handling Fee. For example: Price: 5, Handling Fee: 6, so the total ship charge is: 5 + 6 = 11.
- Precent: Shipping methods will be calculated according to the free and handling price fields: Price + Handling Fee. For example: Price: 5, Handling Fee: 6, so the ship’s total charge is: 5 + 5 * 6/100 = 5.3.
Handling Fee: Enter the price for Handling Free. If left blank, the default is 0.
Pickup ready after:
- Enter the number of days after ordering at least how many days customers can pick up the goods.
- If left blank means that the product is always available in the store so customers can pick it up during business hours at any time.
Displayed Error Message: Enter the message to notify errors when shipping method is not applied to several addresses that customers selected. Display message when
Show Methods if Not Applicable = Yes
.Ship to Applicable Countries:
- All Allowed Countries: Apply the store pickup method to all countries.
- Specific Countries: Apply the store pickup method to certain countries.
- Ship to Specific Countries: Select countries to apply the store pickup method. Unselected countries will not allow this delivery method.
Applied Payment Methods: Select payment method to apply to store pickup method.
Show Methods if Not Applicable: If Yes, the store pickup method will still be displayed even when not applicable to some addresses or countries that customers selected, and the Displayed Error Message will be shown.
Sort Order:
- Enter the number in the Sort Order field. Display sort order for Shipping method when customer pays. The higher the number, the more priority the shipping method has. With 0 being the highest.
- If left blank, the default is 0.
2. Form Add New/Edit Product¶
Login to the Magento Admin, choose Catalog > Products Add new/Edit any product
- Available Store Pickup:
- Select store locator to display product on that store locator. - If left blank, the product will not display and be in any store locator.
- Note: If the Form Add New/Edit Store locator has been selected, in this part the product will be selected for that store locator. Or you can edit the store locator for each product here.
3. Orders Backend¶
This section records the store locator’s address information, after ordering for how long the customer can come to pick up the goods and the amount of additional charges customers have to pay as shipping,…
API¶
Store Locator developed by Mageplaza supports the use of Rest API to view the information of locations data by store, configuration by store, get map config by style, location information by quote,etc.
More details can be seen from here
Get instruction on creating Integration tokens from here
GraphQL¶
Run the following command in Magento 2 root folder
composer require mageplaza/module-store-locator-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
To start working with Store Locator GraphQL in Magento, you need to:
- Use Magento 2.3.x. Return your site to developer mode
- Set GraphQL endpoint http://
/graphql in URL section, click on Set endpoint. For example, http://develop.mageplaza.com/graphq - Mageplaza supports query and mutation to view the information by locations data by store, configuration by store, pickup config, etc. That can be seen from here
Notation¶
If you want to uninstall the extension, please use composer to run the command bin/magento module:uninstall Mageplaza_StoreLocator
Find the follow table to delete extension mp_mageplaza_storelocator_holiday
, mp_mageplaza_storelocator_location
, mp_mageplaza_storelocator_location_holiday
attribute in your data base.
Go to data base > table eav_attribute
. At attribute_code
, delete attribute mp_pickup_locations
Next, go to mp_cms_block
then delete mp-storelocator-block