Configuring WooCommerce Geolocation

Since version 2.3, WooCommerce introduced a function that allows you to set the default customer location to their actual location by using his IP.
Price Based on Country uses the WooCommerce Geolocation function to display price and currency based on customer country.

Default Customer Address

Default customer location
To activate the WooCommerce Geolocation function, go to WooCommerce → Settings and set Default Customer Address option to one of these two options:

  • Geolocate address, or
  • if you are using a cache system, Geolocate with page caching support. Is the same as above, but does the geolocation via Ajax. This option adds to your website URLs a ?v=xxxxx parameter. This is normal to prevent static caching of prices.
You must manually clear the cache of your cache plugin and your hosting provider after set Geolocate with page caching support.

MaxMind GeoIP database

WooCommerce uses the MaxMind GeoIP database to geolocate customers. If WooCommerce cannot download the MaxMind GeoIP database, the Geolocation function will not work.

To check MaxMind GeoIP database have been download go to WooCommece → Status 

MaxMin GeoIP WooCommerce status