Site icon PrestaShop | Magento | CRM Modules

PrestaShop Geolocation Setup and documentation

PrestaShop Official Website

In PrestaShop, Geolocation allows your store to detect a visitor’s country using their IP address. It can automatically:

How to Configure Geolocation in PrestaShop

Step 1: Open Geolocation Settings

Go to:

International → Geolocation


Step 2: Download GeoLite2 Database

PrestaShop uses the MaxMind GeoLite2 country database.

Download from:

MaxMind GeoLite2 Database

After downloading:

  1. Extract the file
  2. Upload GeoLite2-Country.mmdb

Upload location:

/app/Resources/geoip/

For older PrestaShop versions:

/tools/geoip/

Step 3: Enable Geolocation

In back office:

Options include:


Step 4: Configure Behavior

You can:

Example:


Step 5: Whitelist Your IP

Very important during testing.

Add your IP address to whitelist:

127.0.0.1
YOUR_PUBLIC_IP

Otherwise you may block yourself accidentally.


Common Uses

A. Country Restrictions

Block:

B. Localized Pricing

Show:

C. Tax Automation

Automatically apply:


Troubleshooting

Geolocation Not Working

Check:


Required PHP Extensions

Usually:


Performance Tips

Geolocation can slightly increase server load.

Recommendations:

Especially important for:


Security Benefits

Geolocation helps:


Useful Official Documentation

Exit mobile version