Page 1 of 1

Problem with some currencies like BRL, CHF

PostPosted: Thu Aug 29, 2013 4:25 pm
by atrus80
Hi Stan,

We have the following problem -which may be problem of VM2 itself, not sure- :

When a customer makes an order of XX amount in BRL or CHF, then the order confirmation and his order details show XX amount but in Euros, which is the default currency.

Have you encountered this before? I'd appreciate your comments!

Rgrds,
Chris

Re: Problem with some currencies like BRL, CHF

PostPosted: Fri Aug 30, 2013 5:13 pm
by admin
Hello Chris, this seems to fix it:

\components\com_virtuemart\views\orders\view.html.php
from
Code: Select all
$emailCurrencyId = 0;

change to:
Code: Select all
$emailCurrencyId = $orderDetails['details']['BT']->user_currency_id;


Best Regards,
Stan

Re: Problem with some currencies like BRL, CHF

PostPosted: Thu Sep 12, 2013 12:07 pm
by admin
There also seems to be the same problem in the order emails in
\components\com_virtuemart\views\invoice\view.html.php

set the default currency from:
Code: Select all
$emailCurrencyId = 0;


to:
Code: Select all
$emailCurrencyId=$orderDetails['details']['BT']->user_currency_id;


Best regards,
Stan

Re: Problem with some currencies like BRL, CHF

PostPosted: Tue Sep 17, 2013 9:44 am
by atrus80
Thanks Stan,

Noted your fix was also included in latest SVN.

Chris

Re: Problem with some currencies like BRL, CHF

PostPosted: Wed Sep 18, 2013 6:16 pm
by admin
hello, i am very glad, i really pushed on valerie and i am glad it did got included.
best regards,
stan