Jump to content
SumeetAnand

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

Share this post


Link to post
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)

Share this post


Link to post
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! 

Share this post


Link to post
Share on other sites

Hi, Geo Targeting Pro module has 'country simulator tool' so one can easily test by IP or selected country without resorting to less than perfectly reliable tools.

Cheers, el
 

Edited by El Patron (see edit history)

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More