VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: SwPz on February 02, 2008, 09:39:26 AM

Title: Multiple conversion during checkout when changing currency
Post by: SwPz on February 02, 2008, 09:39:26 AM
Hi, I was trying to test VM1.1Beta3 on J1.5 and was adding the sample product into the cart and trying to checkout. The default currency is USD. But I added a few currency under the currency convertor as I wanted to try that function.

Currently, if I used the default USD to perform checkout, the process is smooth with all the calculations being correct. But when I try to use other currency, for example SGD as the currency, the calculation of the order will be wrong. I realize this is because during 'checkout step2: shipping method', the amount for shipping fee display is already converted to SGD and display in SGD, let's assume this amount being SGDX. But when I click next to go on to 'step 3: Payment method', the amount displayed will be (SGDX*currencyrate from USD to SGD), meaning it convert the shipping rate again, when it should not have.

The example I was trynig to checkout is Hammer (default sample data in VM)
I believe the currency rate ECB used is 1.43 (taken from dividing 64.64/45.2, where 45.20 is the original shipping rate in USD)

Not sure if this is a problem solved, or not. :)
Title: Re: Multiple conversion during checkout when changing currency
Post by: nestofhk on June 02, 2008, 08:44:41 AM
Dear ALL,

I get the same problem, Joomla 1.0.15 and VM 1.1.0 STABLE version.

If any one can help I will be very happy.

Thanks
Title: Re: Multiple conversion during checkout when changing currency
Post by: nestofhk on June 11, 2008, 07:25:58 AM
any people get the same error or any one work fine with which version?

thanks
Title: Re: Multiple conversion during checkout when changing currency
Post by: Soeren on June 12, 2008, 15:02:47 PM
So if I understand right, the order actually has the right shipping costs after being stored? The wrong value is just displayed during checkout?

If so, I have found the error.
Title: Re: Multiple conversion during checkout when changing currency
Post by: josiah on June 18, 2008, 05:17:28 AM
Quote from: Soeren on June 12, 2008, 15:02:47 PM
So if I understand right, the order actually has the right shipping costs after being stored? The wrong value is just displayed during checkout?
If so, I have found the error.
No, if you select the default currency, the cost is correct.

If you select other currency, the shipping cost in "Step 2 - Ship Mothods" & "Step 3 - Payment Method" is incorrent, and correct in "Step 4 - Complete order".

Finally, the shipping cost in order is wrong if you haven't select the  default currency.
Title: Re: Multiple conversion during checkout when changing currency
Post by: nestofhk on July 15, 2008, 13:26:23 PM
Quote from: josiah on June 18, 2008, 05:17:28 AM
Quote from: Soeren on June 12, 2008, 15:02:47 PM
So if I understand right, the order actually has the right shipping costs after being stored? The wrong value is just displayed during checkout?
If so, I have found the error.
No, if you select the default currency, the cost is correct.
If you select other currency, the shipping cost in "Step 2 - Ship Mothods" & "Step 3 - Payment Method" is incorrent, and correct in "Step 4 - Complete order".
Finally, the shipping cost in order is wrong if you haven't select the  default currency.


Seems VM1.1.1 still not fix this problem...
Title: Re: Multiple conversion during checkout when changing currency
Post by: jilong on August 14, 2008, 12:15:27 PM
This problem also happen to my new VM1.1.1.

It display double convert on "basket_b2c.html.php"
It display correctly in "ro_basket_b2c.html.php" on confirm page.

But after click Confirm button, it record the double convert amount as shipping amount inside the Purchase Order.

Does any one manage to do something on this?

Title: Re: Multiple conversion during checkout when changing currency
Post by: eidulameen on December 07, 2008, 07:36:21 AM
Hi Guys,  I am getting the same problem.  Does anyone knows how to solve it?


I have setup my shipping rate in USD and also the product prices in USD.  When I use US Dollar VM calculate the order correctly.

However, when I change the currency in my online shop to malaysian ringgit, VM calculate my shipping charge according to the formula stated below for my orders.  Shipping Rate and packaging fee that I set for "Sabah - Sarawak ( 0 - 2.5 kg )" is 5 USD. It is calculating the currency conversion rate twice. You can access my site at http://soundtechhifi.com/index.php.  I have attached the relevant images for your perusal.

Shipping Rate(Malaysian Ringgit)= Shipping Charge ( US Dollar ) * 3.63 * 3.63
                                = 5 * 3.63 * 3.63
                                = 66.17

Malaysian ringgit currency conversion rate is RM 3.63 = 1 US dollar

The details of the transaction is shown below.

Shipping Information
Carrier    Shipping Mode                   Price
Pos Malaysia     Sabah - Sarawak ( 0 - 2.5 kg )    MYR18.19

Order Items
Qty    Name                    SKU    Price    Total   
1    Micropod SE - Black   SCSP04-Black    MYR1 818.75    MYR1 818.75   
     
                                              SubTotal :    MYR1 818.75   
                                Shipping and Handling Fee :    MYR66.17   
     
                                                 Total:    MYR1 884.92   
     
                                            Tax Total :    MYR0.00