Jump to content

Geo Location - Incorrect country post upgrade to 1.6.0.11


Recommended Posts

Hi All,

 

Firstly Happy new year. :)

 

I recently upgraded site www.metrocount.com/shop from 1.6.0.9 to 1.6.0.11 after paypal stopped supporting ssl3 payments stopped. I have reverted from a custom theme to the default-bootstrap theme(with modified Header and Footer), and am using Geolocation to show customers the Catalogue(without prices) when browsing from outside the enabled country (Australia).

 

prestasho-MetroCount.jpg

 

Prior to upgrade, this was working well and I tested it from US-UK and a bunch of other areas through proxy servers.

 

Post upgrade, the Geolocation seems out of whack. When I access the store from UK, Ireland, or Netherlands I am still able to see prices (which shouldn't be visible). Yet through a proxy in France and Belgium the shop is in catalogue mode as it should be.

 

I have updated the MaxMind geocitieslite.dat but that didn't make any difference. (Have cleared cache, force compiled)

 

I noticed that the code in the header.tpl file has changed from:

{if !$content_only}

To:

{if !isset($content_only) || !$content_only}

Can anyone point me in the direction of what is causing the ip's not to be allocated to countries correctly? Would it like be theme related, version related or ip database related?.

 

I have a separate shop that caters to USA and is redirected from /shop/ to /shopus/ using the following code in the header. This seems to also be incorrectly classifying IP locations and hasn't been updated to default-bootstrap theme which makes it seem less like a theme issue and more like an upgrade issue?

{if $geolocation_country == "United States"}  {header( 'Location: http://www.metrocount.com/shopus/' )};  {/if}  

Thanks for any assistance.

 

Louis

Edited by louisvs (see edit history)
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...