graham23s Posted January 29, 2010 Share Posted January 29, 2010 Hi Guys, when i upload a product to my site i upload the price in USD and GBP, im trying to think of a way users can display the price in their countries currency. any help would be appreciated im stumped Graham Quote Link to comment https://forums.phpfreaks.com/topic/190296-changing-currency-on-site/ Share on other sites More sharing options...
ignace Posted January 29, 2010 Share Posted January 29, 2010 If you have got spare money I should go for a reliable accurate SaaS like XE http://www.xe.com/dfs/product.php Quote Link to comment https://forums.phpfreaks.com/topic/190296-changing-currency-on-site/#findComment-1003967 Share on other sites More sharing options...
teamatomic Posted January 29, 2010 Share Posted January 29, 2010 Almost the same way you would for a different language. Have little images of the various currencies symbols that are clickable. Once clicked the symbols value goes into a session var. The currency after you get it from the DB is run through a converter. If the session var is not set the currency just passes through else its hit with whatever formula needed to convert it. For the display of the symbol check the session var and include a DEFINE so all you need is <img src=\"<?=DEFINE?>\"> Fairly simple and straight forward. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/190296-changing-currency-on-site/#findComment-1003977 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.