Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This guide covers the implementation of the Country Select widget, and provides information on the geolocation service. 

 

Country Select Widget in Theme Layout Top ZoneModal Window for Country Selection

...

When a user lands on your site, Customer Self Service makes an API call to the geolocation provider - this retrieves the user's IP address and associated location details.

Using With this information, the user's default country can be automatically set by the website, without the user having to do anything. Prices will be displayed in the correct currency, checkout address formats will be relevant, and so forth. 

 

MaxMind GeoIP is a subscription-based service. You'll need an account with this provider in order to utilise geocoding in BPD. 

...

  1. Login to the CMS. 
  2. Navigate to Settings --> Settings
  3. Scroll to the Geolocation Settings section.
  4. Set the Geolocation Provider to MaxMind.
  5. Enter your credentials: 
    • Username - your MaxMind username
    • Password - your MaxMind password 
  6. Click 'Update' to save changes. 

    Image Added 


Country Selector

Even though the user's default country is set via the geolocation service, the user is still free to select a different country while on the website. To do this, they simply select a country from the country list displayed by the Country Select widget. 

...

  1. Login to the CMS.
  2. Navigate to Content --> Theme Layout
  3. In the zone Top Bar, add the Country Select widget.
  4. Load your website in another browser / incognito tab to verify the widget displays as expected. (You can adjust the widget's position by dragging and dropping it within the zone in CMS as required.) 
  5. Click the country name to launch the selector window. 
  6. You should see the list of countries from the CV Language table. Each country name is paired with its flag. 
    Image Added 

 

 

...

Content by Label
showLabelsfalse
max5
spacesKB
sortmodified
showSpacefalse
reversetrue
typepage
labelshow-to cms settings