VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: djouga on June 12, 2012, 17:28:06 PM

Title: Total price does not update on quantity change
Post by: djouga on June 12, 2012, 17:28:06 PM
Hello,

I've been having a weird bug on my shop: the final price should be re-calculated each time the quantity changes.
It simply doesn't work... I can see that the JS function is trying to operate (quick opacity change on the price) but that's it, it doesn't work.

I'm running Joomla 2.5 and VM 2.0.6.
I've found this thread about the problem but... it was supposedly corrected in 2.0.4?!
http://forum.virtuemart.net/index.php?topic=101072.0

Thanks
Title: Re: Total price does not update on quantity change
Post by: djouga on June 14, 2012, 08:47:36 AM
Bump still need some help, please.
Title: Re: Total price does not update on quantity change
Post by: anisimow on February 27, 2013, 13:02:04 PM
Quote from: djouga on June 14, 2012, 08:47:36 AM
Bump still need some help, please.

I had got the same problem until change the core )
on  components\com_virtuemart\controllers\productdetails.php
after line 296 //VmConfig::$echoDebug = TRUE;
$prices = $product_model->getPrice ($virtuemart_product_id, $customPrices, $quantity);[code]

add [code]                $prices['basePrice'] = $prices['basePrice'] * $quantity;
                $prices['basePriceWithTax'] = $prices['basePriceWithTax'] * $quantity;
                $prices['discountedPriceWithoutTax'] = $prices['discountedPriceWithoutTax'] * $quantity;
                $prices['salesPrice'] = $prices['salesPrice'] * $quantity;
                $prices['salesPriceWithDiscount'] = $prices['salesPriceWithDiscount'] * $quantity;
                $prices['taxAmount'] = $prices['taxAmount'] * $quantity;
                $prices['discountAmount'] = $prices['discountAmount'] * $quantity;
                $prices['basePriceWithTax'] = $prices['basePriceWithTax'] * $quantity;