Add a location

  • Updated

Locations in Optimizely Configured Commerce provide customers with the physical locations of your dealers, branches, or any locations you choose to display.

Prerequisites 

  • Purchase a key from the Google Maps Platform page.
  • Enable the Javascript API and Geocoding API in the Google Cloud Platform Console under your API key.

Enter your Google Geocoder API key

Enter your own Google API key in your sandbox and production environments so your maps load correctly on your Location Finder page.

  1. Go to Administration > Settings > Site Configurations in the Admin Console.
  2. Enter your Google API Key in the General section.
  3. Scroll down to the Geocoding section and fill in the fields depending on your geocoding API settings:
    • FreeGeolp's Geocoding API – Enter your Geo IP Geocoder Base URL and Geo IP Geocoder API Key.
    • Google's Geocoding API – Enter your Google Geocoder API URL and Google Geocoder API Key.
  4. Click Save.

Fill-in location settings

  1. Go to Administration > Settings > Site Configurations.
  2. Search for and fill-in the following settings:
    • Default Latitude – Default latitude to use for point to find dealers if a user does not provide a location. Default value: 44.9805206.
    • Default Longitude – Default longitude to use for point to find dealers if a user does not provide a location. Default value: -93.273896.
    • Number of Locations Shown Per Page – Number of locations to show a user per page. Default value: 5.
    • Search Radius – Radius in miles to look for locations. Default value: 50.
  3. Click Save.

Add a location

For a Location to show up in the Location Finder, you must first create it in the Admin Console.

  1. Go to Admin Console > Shipping & Fulfillment > Locations.
  2. Click Add Location to create a new location.
  3. Fill in the applicable information for the location. Only the Name is required, but the location's address and phone number are recommended.
  4. Add a valid URL in the Website URL field to show the location's website in Location Finder.
  5. Click Geolocator to populate the Latitude and Longitude.

    Complete this step only when creating single locations. For multiple locations, Optimizely recommends a geocoding service.

  6. Add additional information, such as the location's operating hours, in the Content Management section. Select Create Revision, and enter the appropriate information in the pop-up editor.
  7. Click Save, then click Publish to push the revision to the live site.

You must assign the location to a website before it displays in the Location Finder. See Assigning a Location to a Website.