VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Shipping Modules => Topic started by: ainweb2009 on April 11, 2010, 16:15:29 PM

Title: A question
Post by: ainweb2009 on April 11, 2010, 16:15:29 PM
Dear friends, i'm looking for all forums and not find a solution to this problem os comment, i'm doing a shop online with virtuemart 1.1.4 and joomla 1.5.15 and want articles appear these currencies, points and euros, the currency default is points and you want when selections euro will make the conversion. The formula serious: Price Euros = points*0.525
Nose where perform this adjustment in virtuemart, having that i can discuss.
A greeting.
Title: Re: A question
Post by: richsung on April 13, 2010, 03:57:04 AM
In your case, I'd just create a new currency called Points, and allow the user to select to display product prices in either Euros or Points (use the VM module called "mod_virtuemart_currencies"). Then, since this exchange rate will be fixed, you could put a small change in class file convertECB.php to check if the conversion is being done to or from the points currency, and use your formula then.

--Rich