views:

26

answers:

2

We have 2 sets of prices, $ and £'s.

How best can I handle this.

Should I have a folder with the US site in so when users click on the US flag they go to mydomain.com/us and then navigate from there.

Or is there something simpler I can do?

The HTML site passes users over to our client system when ordering so currency conversion etc isnt needed. Just want advice on how to handle displaying a site in dollars and pounds.

Thanks.

+1  A: 

If you have a country field on your user's table you could use this value to determine what symbol and prices to show.

Eton B.
No user table, just a HTML site...
Niall
A: 

If you are trying to keep it really simple without any server-side page generation use a bit of JavaScript. Pick a default currency and allow the user to click US or UK to switch to the other one. Javascript can be used to set a cookie so that when the user revisits the website, or views other pages, you can automatically set the preferred currency.

There are a few different ways to perform the conversion, and it probably depends most on how you do the conversion yourself. If you are just going by a current exchange rate store the prices in one currency for each item in a table and then have it apply the exchange rate as part of your conversion function.

I suggest looking into jQuery if you aren't very familiar with JavaScript.

JasonCG
Well the HTML site will pass to our client portal so that handles all the payments/currency etc. Its purely just about displaying the price on the home page and allowing users to basically select which site they want to view.
Niall