News:

Support the VirtueMart project and become a member

Main Menu

Variant price not added when the product price is overrided

Started by sensomedia, July 05, 2018, 10:46:37 AM

Previous topic - Next topic

sensomedia

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;
}

Studio 42

Nice, i hope the team add it(or some other fix) i have to explain all time that it not work to my customers.