Set up Store Locator in NetSuite
To use Store Locator, set up location records in your NetSuite account. For details, see Locations Overview. To set up location records for your stores, including address and business hours, see Creating Locations.
The following topics provide helpful information about enabling and disabling the Store Locator feature:
Verify that Store Locator is Enabled
Store Locator is enabled by default in SuiteCommerce and SCA. However, you can verify that the feature is enabled with the following processes.
To verify that Store Locator is enabled:
-
Go to Commerce > Websites > Configuration.
-
Select your website and domain, then click Configure.
-
Go to the Store Locator tab and the Store Locator subtab.
-
Verify that the Is Enabled box is checked. If it's not checked, select the box.
-
Click Save.
To verify that Store Locator is enabled (SuiteCommerce Advanced pre-Vinson):
-
Open the distro.json file in the SCA source code's root directory using a code editor.
-
Search for lines of code that include
StoreLocator
.For example:
"suitecommerce/StoreLocatorReferenceMapImplementation": "X.X.X", "suitecommerce/Location.SCA": "X.X.X", "suitecommerce/StoreLocatorAccessPoints": "X.X.X", "suitecommerce/StoreLocator": "X.X.X", "suitecommerce/StoreLocatorGoogleMapsImplementation": "X.X.X", "StoreLocatorAccessPoints", "StoreLocator" "StoreLocator.Model" "StoreLocator.ServiceController"
-
Verify that the lines of code are not disabled within comment tags.
-
Search for the following line and confirm that it is not disabled within comment tags:
Location.sca
-
Close the file.
Set Elevated Permissions for the Service File Record
To use Store Locator, set elevated permissions for the service file record in NetSuite. NetSuite creates a custom Advanced Customer Center role after you install SuiteCommerce or SuiteCommerce Advanced (SCA). Use this role for Store Locator setup.
To set elevated permissions for the service file record:
-
Go to Documents > Files > File Cabinet.
-
Go to Web Site Hosting Files > Live Hosting Files > SSP Applications > [Applicable Bundle Folder] > Development > services.
-
Select Edit next to the
StoreLocator.Service.ss
file. -
In the File record, check the Available Without Login box.
-
Go to the Permission subtab.
-
Check the Enabled box.
-
In the Execute as Role list, select the custom Advanced Customer Center role.
-
Check the Run Script Without Login box.
-
Click Save.
Disable Store Locator
You can disable the Store Locator feature in the SuiteCommerce Configuration record. When Store Locator is disabled, customers can't:
-
See store locations in a list or on an interactive map.
-
Find stores near their current location.
-
Search for stores by address, city, or postal code.
-
View location details, including address and hours, from the search results.
-
See a list of all stores.
-
Get directions to a store.
To disable Store Locator:
-
Go to Commerce > Websites > Configuration.
-
Select your website and domain and click Configure.
-
Go to the Store Locator tab and the Store Locator subtab.
-
Clear the Is Enabled box to disable Store Locator.
-
Click Save.
To disable Store Locator (SuiteCommerce Advanced pre-Vinson):
-
Open the distro.json file in the SCA source code's root directory using a code editor.
For more information about the distribution file and its location, see The distro.json and ns.package.json Files.
Note:In pre-Vinson SCA versions, Store Locator is enabled by default. To disable it, edit the
distro.json
file. You'll need developer experience to complete this task. -
Delete (or disable within comment tags) any lines of code that include
StoreLocator
.For example:
"suitecommerce/StoreLocatorReferenceMapImplementation": "X.X.X", "suitecommerce/Location.SCA": "X.X.X", "suitecommerce/StoreLocatorAccessPoints": "X.X.X", "suitecommerce/StoreLocator": "X.X.X", "suitecommerce/StoreLocatorGoogleMapsImplementation": "X.X.X", "StoreLocatorAccessPoints", "StoreLocator" "StoreLocator.Model" "StoreLocator.ServiceController"
-
Delete (or disable within comment tags) the following line:
Location.sca
-
Save and redeploy the
distro.json
file. For more information, see Deploy SCA Customizations to NetSuite.