VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: sensomedia on July 05, 2018, 10:46:37 AM

Title: Variant price not added when the product price is overrided
Post by: sensomedia on July 05, 2018, 10:46:37 AM
I found this fix to allow the variant price to be added to the product price when the product price is overrided. Maybe to add in the next update.
/administrator/components/com_virtuemart/helpers/calculationh.php
Line 391
Found :

if ($override==-1) {
$this->productPrices['discountedPriceWithoutTax'] = $product_override_price;
}


Replace it by:

if ($override==-1) {
$this->productPrices['discountedPriceWithoutTax'] = $product_override_price;
if (!empty($variant)) $this->productPrices['discountedPriceWithoutTax'] += $variant;
}
Title: Re: Variant price not added when the product price is overrided
Post by: Studio 42 on July 05, 2018, 22:16:57 PM
Nice, i hope the team add it(or some other fix) i have to explain all time that it not work to my customers.