Enable Geolocation in PrestaShop

Posted on January 18th, 2016

Prestashop is a powerful E-commerce management system with lots of advanced features. In this tutorial, We will understand one such feature that will allow you to control who can see your store and catalog as per the location. It simply means that you can block whole countries out from your store if you can’t provide your services in that location.

In Prestashop, you can also set some advanced rules with GeoLocation. For example, You can whitelist the IP addresses if someone is working for you from the location that is blocked to access your store. You can update settings to allow people from restricted countries to visit your store but block all the orders from that location. Or, you can also block them alltogether from viewing your store.

In this tutorial, I will show you How to enable and use Gerolocation in Prestashop. It is a very easy process that will only take few minutes to perform. So, Let’s get started.

Enable GeoLocation in Prestashop

To enable Geolocation, Log in to the admin panel of your Prestashop. Then, click on the Preferences -> Geolocation from the left sidebar of the admin panel. See the following screenshot for reference.

Enablw Geolocation in Prestashop - Step 1

If you are using the Geolocation in the first time in your store, You will see a simple note. It will ask you to download a file, upload it inside the /tools/geoip and extract it to use the GeoLocation feature in Prestashop.

On this page, you will see a huge form. In the first section, Click Yes on a switch with GeoLocation by IP Address label. Then, in the second section, you have to select the accessibility of Blocked users and also the countries in which you want to show your store.

In the third section, you have to whitelist the IP address that can access your store. By default, you will see a lots of IP addresses in that section. It is recommended to add additional whitelisted IP address at the end of the list.

Enable Geolocation in Prestashop - Step 3

Finally, click on the Save button given at the bottom of the page to apply changes. Now, the countries that are checked will be able to access your store while the countries that are not checked won’t be able to access your store.

So, this is how you can enable Geolocation in prestashop. We hope you this short tutorial was helpful to you. If you have any questions, please let us know in the following comment section. We are happy to help!

2 Responses to “Enable Geolocation in PrestaShop”

  1. daniela says:

    how do i redirect automatically by geoip2 of maxmind, all argentina stays in principal domain.com and all from abroad gos to principal domain.com/world?

Leave a Reply