From: RyanG24 on
hi paul, i am getting a few complaints from people in the UK an Australia.

have this piece of code that shows a table if they reside in Australia else
show the other table,

but some people are seeing the wrong table for what country they are in?

<cfsilent>
<cfscript>
// capture user's IP address
if (cgi.REMOTE_ADDR EQ "127.0.0.1" OR left(cgi.REMOTE_ADDR,3) EQ "192")
ipAddress="203.154.114.1"; //somewhere in bangkok
else
ipAddress=cgi.REMOTE_ADDR;
// create the geoLocator object
//geoLocator=createobject("component","cfc.geoLocator");
geoLocator=createobject("component","geoLocator").init();
// what locale for this user?
thisLocale=geoLocator.findLocale(ipAddress,cgi.HTTP_ACCEPT_LANGUAGE);
// we can also find their country
thisCountry=geoLocator.findCountry(ipAddress,cgi.HTTP_ACCEPT_LANGUAGE);
// and language
thisLanguage=geoLocator.findLanguage(ipAddress,cgi.HTTP_ACCEPT_LANGUAGE);
// we can even get localized names for language & country
thisC=geoLocator.showCountry(ipAddress);
thisL=geoLocator.showLanguage(ipAddress);
// test if valid locale (according to our logic)
bLocaleValid=geoLocator.isValidLocale("fr_RU");
</cfscript>
</cfsilent>



<cfif thisC is 'Australia'>
8 cents
<cfelse>
<strong>5 pence</strong>
</cfif>

From: PaulH **AdobeCommunityExpert** on
RyanG24 wrote:
> hi paul, i am getting a few complaints from people in the UK an Australia.

what IPs?

did nigel update the jar yet?
From: PaulH **AdobeCommunityExpert** on
in case you missed it, the database has been updated:

https://sourceforge.net/project/showfiles.php?group_id=72381&release_id=483311
From: RyanG24 on
ok yes the database has been updated but, i still have users in australia seeing UK pricing?

<cfif thisC is 'Australia'>
8 cents
<cfelse>
[B]5 pence[/B]
</cfif>
From: PaulH **AdobeCommunityExpert** on
RyanG24 wrote:
> ok yes the database has been updated but, i still have users in australia seeing UK pricing?
>
> <cfif thisC is 'Australia'>
> 8 cents
> <cfelse>
> [B]5 pence[/B]
> </cfif>

explain how you updated the jar on your server. what IPs are telling you they
are from the UK when you know they are in australia?
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6
Prev: Itext Problem
Next: Unsupported major.minor version 49.0