Page 1 of 1

Currency conversion on the fly

PostPosted: Wed Aug 05, 2009 2:59 pm
by andymat
Does anyone know if there is a site on the internet which lists factors for currency conversion that is regularly updated and can be referenced as a variable in PHP calculations?

I would like to provide a ā‚¬ conversion on the basket page of my website to give an idea how much an item would cost in Euros to customers living in the Euro zone. And potentially it could progress from there - possibly selling in other currencies. It would depend on various matters.

Many thanks.

Re: Currency conversion on the fly

PostPosted: Thu Aug 06, 2009 10:20 am
by MikeyB
Hi,

There are a few, but most seem to cost quite a bit, but did come across this one:
http://forum.xaviermedia.com/about10979.html

You can get the latest rates in XML format, based on the Euro.
http://api.finance.xaviermedia.com/api/latest.xml

Re: Currency conversion on the fly

PostPosted: Thu Aug 06, 2009 10:38 am
by andymat
Many thanks Mr B, that is pretty much what I was after.

Now comes the fun bit, incorporating it into the PHP!