VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: magj on July 22, 2013, 12:36:39 PM

Title: Fixed Exchange rate calculation method
Post by: magj on July 22, 2013, 12:36:39 PM
Hi

Sorry if it's asked before, I'm googling it (and searching it in this forum) for hours but I couldn't get it to work

I have a base currency call it AAA that is my shop's base currency , I want to have a fixed exchange rate to USD that I'll enter it daily or so.

1 USD = 40000 AAA

then it is : 0.000025
When I Set AAA to 1 and USD to 0.000025 , it is rounded to 0.00003
How should I enter this exchange rate?
When I Set it in reverse it's not working (AAA > 40000 and USD to 1)

Virtuemart 2.0.22a , Joomla 2.5.11 - PHP 5.3
Any help would be greatly appreciated
Regards
Title: Re: Fixed Exchange rate calculation method
Post by: magj on July 26, 2013, 15:40:54 PM
Hi Again,

Any help?

I also tried some other ways , no luck!  :o

Regards
Title: Re: Fixed Exchange rate calculation method
Post by: magj on August 12, 2013, 13:28:37 PM
bumping this in hope of some attention.

Could it be done in another way??

Regards

Title: Re: Fixed Exchange rate calculation method
Post by: Maxim Pishnyak on August 12, 2013, 14:36:44 PM
Did you try to dig code that responsible for rounding exchange rate?
Title: Re: Fixed Exchange rate calculation method
Post by: magj on August 22, 2013, 14:20:00 PM
Thanks for your reply,
No, I couldn't find where is that exactly.

Regards
Title: Re: Fixed Exchange rate calculation method
Post by: Maxim Pishnyak on August 24, 2013, 10:02:08 AM
You could do a text search 'currency_exchange_rate' in VM files.