Problem with some currencies like BRL, CHF

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Problem with some currencies like BRL, CHF

Postby atrus80 » Thu Aug 29, 2013 4:25 pm

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
atrus80
 
Posts: 85
Joined: Mon Feb 06, 2012 6:22 pm

Re: Problem with some currencies like BRL, CHF

Postby admin » Fri Aug 30, 2013 5:13 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Problem with some currencies like BRL, CHF

Postby admin » Thu Sep 12, 2013 12:07 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Problem with some currencies like BRL, CHF

Postby atrus80 » Tue Sep 17, 2013 9:44 am

Thanks Stan,

Noted your fix was also included in latest SVN.

Chris
atrus80
 
Posts: 85
Joined: Mon Feb 06, 2012 6:22 pm

Re: Problem with some currencies like BRL, CHF

Postby admin » Wed Sep 18, 2013 6:16 pm

hello, i am very glad, i really pushed on valerie and i am glad it did got included.
best regards,
stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2

cron