Multi Currency php for e-commerce site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benji2010
Forum Newbie
Posts: 12
Joined: Fri Apr 01, 2011 1:41 am

Multi Currency php for e-commerce site

Post by benji2010 »

Hello everyone,

I need a little help with multi currency for a e-commerce store. I want users to choose from either GBP or USD. I have a few books on on e-commerce and php but I have not found a solution - that is why I am here!

If you could point me in the right direction I would be very happy!

Thanks,

Ben.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Multi Currency php for e-commerce site

Post by Jade »

Are you using a third party payment solution like paypal? Most of those have documentation on how to accept multiple currencies using their APIs.
benji2010
Forum Newbie
Posts: 12
Joined: Fri Apr 01, 2011 1:41 am

Re: Multi Currency php for e-commerce site

Post by benji2010 »

Hey,

Thanks for posting! I will be using paypal, I will check that out. If I use an API will that be able to change currency on my site?

Thanks,

Ben.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Multi Currency php for e-commerce site

Post by Jade »

Yes you just have to pass it a currency code (USD or GBP) before the form submit.
Post Reply