Posted by John Bokma on 10/25/05 00:44
"Nicole" <nickywebsterjohns@yahoo.co.uk> wrote:
> Hi
>
> I need to be able to change the currency and some form fields
> displayed on my website depending on where the visitor is based. I
> don't need a fully functional cart, just a kinda either display '$10'
> or '£7' sort of thing!
How many currencies?
> I was planning on having a map on my opening screen with hotspots over
> the countries.
World map? Are you going to support them all? Is every visitor able to find
his/her country on this map?
> On the links for the hot spots I was planning to have
> something like href="functions.php?FuncToExec=countrySelectUS"> in the
> functions.php i was going to set a session variable to the country ie
> 'US' and then automatically move to my normal page. Then in my forms
> etc I was planning on using if statements to select price etc.
php -> use a hash with the key the currency code, and the value the
conversion rate. If the key is undefined, report "bad currency", don't fix
it to a default (you might overlook a bug that way).
--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/
[Back to original message]
|