Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 10-25-2005, 01:02   #1 (permalink)
Nicole
Civilians

 
Default simple setup for allowing visitors to choose their country

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!

I was planning on having a map on my opening screen with hotspots over the
countries. 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.

This seems rather long winded! Is it the right way to do it?
Thanks for any help given
NO




 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 10-25-2005, 01:03   #2 (permalink)
John Bokma
Civilians

 
Default Re: simple setup for allowing visitors to choose their country

"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/
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 01:03   #3 (permalink)
Miguel Cruz
Civilians

 
Default Re: simple setup for allowing visitors to choose their country

Nicole <nickywebsterjohns@yahoo.co.uk> wrote:
> 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!
>
> I was planning on having a map on my opening screen with hotspots over the
> countries.


That'll be popular with people from Singapore, Monaco, etc.

miguel
--
Hit The Road! Photos from 38 countries on 5 continents: http://travel.u.nu
Latest photos: Burma; Hong Kong; Macau; Amsterdam; Grand Canyon; Amman
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 01:03   #4 (permalink)
www.1-script.com
Civilians

 
Default Re: simple setup for allowing visitors to choose their country

Nicole 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!



I think the right way to do that would be using the GeoIP PHP API:

http://www.maxmind.com/app/php

This way you don't have to ask, just give them the custom layout based on
their IP Address. Not without its limitations, but think about
human-induced error factor: it is highly unlikely that you will get an
honest answer from a visitor coming from Russia, India, China or any other
place that online retailers don't like much. They know for the fact that
they will be treated badly and maybe even denied access to the site, so
why bother answering this question honestly? It's so easy to just pick
U.S.A. from the list you've provided.

--
Cheers,
Dmitri
See Site Sig Below
-------------------------------------


--
##-----------------------------------------------#
Article posted with Web Developer's USENET Archiv
http://www.1-script.com/forum
Web and RSS gateway to your favorite newsgroup -
alt.comp.lang.php,alt.php,alt.www.webmaster,comp.lang.php - messages and counting
##-----------------------------------------------##
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 01:03   #5 (permalink)
Nicole
Civilians

 
Default Re: simple setup for allowing visitors to choose their country

Hiya

As I said its a simple solution that needed. I wont be supporting all
countries, only the English speaking countries that I choose in the future
to do marketing in.

So small countries are not an issue, neither are countries such as china
etc.

I am trying to implement the idea, but cant seem to get my function executed
from the hyper link

N

"www.1-script.com" <info_at_1-script_dot_com@foo.com> wrote in message
news:S0d7f.186209$cw3.36315@fe01.news.easynews.com ...
> Nicole 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!

>
>
> I think the right way to do that would be using the GeoIP PHP API:
>
> http://www.maxmind.com/app/php
>
> This way you don't have to ask, just give them the custom layout based on
> their IP Address. Not without its limitations, but think about
> human-induced error factor: it is highly unlikely that you will get an
> honest answer from a visitor coming from Russia, India, China or any other
> place that online retailers don't like much. They know for the fact that
> they will be treated badly and maybe even denied access to the site, so
> why bother answering this question honestly? It's so easy to just pick
> U.S.A. from the list you've provided.
>
> --
> Cheers,
> Dmitri
> See Site Sig Below
> -------------------------------------
>
>
>
> --
> ##-----------------------------------------------##
> Article posted with Web Developer's USENET Archive
> http://www.1-script.com/forums
> Web and RSS gateway to your favorite newsgroup -
> alt.comp.lang.php,alt.php,alt.www.webmaster,comp.lang.php - messages and
> counting!
> ##-----------------------------------------------##



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 01:03   #6 (permalink)
Gordon Burditt
Civilians

 
Default Re: simple setup for allowing visitors to choose their country

>I think the right way to do that would be using the GeoIP PHP API:
>
>http://www.maxmind.com/app/php
>
>This way you don't have to ask, just give them the custom layout based on
>their IP Address.


That's great to determine a DEFAULT, but let the user override it.
People do occasionally visit other countries. People could access
the Internet via international long-distance calls. And GeoIP is
far from perfect in determining how an international company allocates
its IP addresses within its own network (information which they
may consider proprietary).

>Not without its limitations, but think about
>human-induced error factor: it is highly unlikely that you will get an
>honest answer from a visitor coming from Russia, India, China or any other
>place that online retailers don't like much.


This was supposed to be a way of displaying things in the correct
currency, NOT a security measure to exclude people.

>They know for the fact that
>they will be treated badly and maybe even denied access to the site, so
>why bother answering this question honestly? It's so easy to just pick
>U.S.A. from the list you've provided.


And if they like looking at prices in US dollars, that's perfectly fine.
They may not be able to spend their own country's currency outside
that country anyway, and they may end up having to pay in US dollars.

Gordon L. Burditt
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 05:02   #7 (permalink)
Toby Inkster
Civilians

 
Default Re: simple setup for allowing visitors to choose their country

Nicole wrote:

> I was planning on having a map on my opening screen with hotspots over the
> countries.


How do you expect Americans to use that?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Questions / Simple Answers JudyLynne Humor 0 05-03-2006 22:29
Simple Questions / Simple Answers Snowden Humor 1 04-06-2005 00:21
Allowing a script to run only once... plato Web Design 9 02-04-2005 19:00
Simple Formula for simple person. :) John Microsoft Applications 1 06-16-2004 01:22
Allowing text to overlap other cells Scot Microsoft Applications 2 06-15-2004 15:30


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 20:19.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 1.05598 seconds with 19 queries