In order to use Geolocation tools in PrestaShop 1.7 you need to download and unpack GeoLite2-City.mmdb.gz file into the /app/Resources/geoip/ directory. Unfortunately - since 30 December 2019 this file is not available to download anymore(before 30 December 2019 it was possible to download it without any additional steps - file was available to download directly by link).
GeoLite2-City.mmdb.gz file - what it contains?
GeoLite2-City database created by MaxMind.com contains thousands of records with information about ip-country and even ip-city associations. Thanks to this file - in context of PrestaShop - we will be able to identify customers' origin. The way the IP-based geolocation works is simply by checking which IP range is used by which area, using an IP-to-location database. So, you can find the information like the country and the city that your users come from, just by knowing their IP address.
How to download GeoLite2-City.mmdb.gz for PrestaShop ?
As I already mentioned this file is still accessible for free - even for commercial projects - but it requires some additional steps before you will be able to download it. Below you can find detailed instructions.
That's all. You can unpack downloaded file and move the GeoLite2-City.mmdb file into the /app/Resources/geoip/ directory. Thanks to this you will be able to use geolocation in prestashop 1.7 and in our modules like:
If you are looking for Geoliation for old PS releases, check this: GeoLiteCity.dat for PrestaShop 1.6.x