Jump to content

Geolocation not working as expected.


Recommended Posts

I think I have tried almost everything .. need your expert guidance!

 

- Downloaded, unzipped, and placed the geo file as per the instructions (v1.7.1.2)

- Selected 'Visitors cannot see catalog' for restricted countries

- Selected 'All features available' for other countries

- Selected only USA for countries accessible

 

ISSUE: However, the store is available with all features to all countries, no restriction. 

 

- to test the functionality, selected 'Visitors cannot see catalog' for both restricted and other countries and I can see that the store is unavailable (403 forbidden) to ALL countries. 

 

I just need the store be available to USA and 403:forbidden for other countries. What am i missing???

 

Screenshot below:

 

post-1403686-0-80876600-1498176458_thumb.png

Link to comment
Share on other sites

Hi, when testing geo location will not set visitors cookie country if it's already set.

 

How are you testing by country?  

 

Note: native PS will disallow 'any' shopping when IP does not resolve.

 

Here is module solution that extends PrestaShop native Geo Location:

It has  built in country or IP simulator making viewing your shop by county super simple.  Been around since 1.4 supports all current versions of PrestaShop. 

PrestaHeroes Geo Targeting Pro Module.

Edited by El Patron (see edit history)
Link to comment
Share on other sites

Thank you for the reply.

 

In order to test the geolocation feature, I am using:

 

  1. https://geopeeker.com/
  2. HOLA Chrome extension

 

I can see visits from various countries tracked in Google Analytics; so the above two approaches seems to visit the site from other countries and are able to view the site fully. 

 

Not sure what I can do to make it work! 

Link to comment
Share on other sites

  • 1 year later...
  • 8 months later...

Hello,

I wonder if you could help. I wanted to enable geolocation on my store and it is working. But if I want to modify list of the countries that page should be available then it is not allowing me. I am ticking all the boxes next to the countries but after save, it seems to be going back to it's default country selection. Searched forums about the similar problem but no luck. It looks as if it was caching problem but I have cleared the cache as well.

Thanks

Kind Regards 

Link to comment
Share on other sites

  • 2 weeks later...
On 2/27/2019 at 6:16 PM, bartek_p said:

Hello,

I wonder if you could help. I wanted to enable geolocation on my store and it is working. But if I want to modify list of the countries that page should be available then it is not allowing me. I am ticking all the boxes next to the countries but after save, it seems to be going back to it's default country selection. Searched forums about the similar problem but no luck. It looks as if it was caching problem but I have cleared the cache as well.

Thanks

Kind Regards 

not aware of any issue in this area, you can enable ps debug mode (turn off when done) and see if error when saving.

I do not recommend using 1) native ps geo location (no shop on unresolved ip's) or 2) limiting by country except for 'very very' special circumstances, you can limit who can purchase by carrier.  See our rather famous work in visitors shipping assurance here

https://addons.prestashop.com/en/delivery-tracking/42233-visitor-shipping-assurance.html

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...