You are here:  » Multiple Currencies

Support Forum



Multiple Currencies

Submitted by MKJ on Sat, 2007-04-21 13:14 in

Hi,

I have a website that deals mainly in Euros, but also have feeds from companies that are based in the UK and so are in pounds.

A number of feeds have the following columns:
currency (ie GBP)
displayPrice (ie GBP399.99)
searchPrice (ie 399.99)

Is there any way of telling the system that anything with a column entry of GBP should have a currency symbol of £?
It sounds relatively simple to have a statement like
if currency equals "GBP" then currencyHTML = "£"
or similar.

Any help appreciated.

Mike J

Submitted by support on Sat, 2007-04-21 13:33

Hi Mike,

I'm afraid you will only be able to run one installation of Price Tapestry in a single currency. The GBP will be removed by the decimalise() function, so the price will still appear correctly, and all you would need in your config.php is:

$config_currencyHTML = "£"

(it is preferably to use the HTML entity for the pound sign rather than the literal character)

Cheers,
David.