Hi There,
So The issue i have is that i want to show some message in header depending on country or geo zone
So how can i write if statement ?
if (geo_zone_id == 4) show the banner
How do you intend to which country the visitor is from county : their login / currency /IP / browser language etc. Depending on that answer leads to the code.
Go the All Blacks!
Maybe IP,
How for example weight baset shipping gets geo zones? For example if i'm from spain shipping cost will be calculated for spain and so on.
So i thought that the same would work here
i found a code for weight base shipping and it is getting geo_zone_id
if geo_zone_id will be one of the countries from the zone list will it work?
if so how is it possible to get geo_zone_id as int
or is there any other way
thanks
How for example weight baset shipping gets geo zones? For example if i'm from spain shipping cost will be calculated for spain and so on.
So i thought that the same would work here
i found a code for weight base shipping and it is getting geo_zone_id
if geo_zone_id will be one of the countries from the zone list will it work?
if so how is it possible to get geo_zone_id as int
or is there any other way
thanks
A few possible solutions here:
https://stackoverflow.com/questions/218 ... pplicaiton
https://stackoverflow.com/questions/218 ... pplicaiton
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Not sure if you're looking for a commercial solution, but you can do this with a combination of Geo IP Tools and Rule-Based Banners. You'd use Geo IP Tools to detect the customer location, and then add a banner with a rule like this, so it only appears for users in that geo zone:
Rule: Geo Zone is Spain
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Rule: Geo Zone is Spain
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Who is online
Users browsing this forum: No registered users and 191 guests