Author Topic: Variant price not added when the product price is overrided  (Read 148 times)

sensomedia

  • Beginner
  • *
  • Posts: 3
  • A beginner
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 :
Code: [Select]
if ($override==-1) {
$this->productPrices['discountedPriceWithoutTax'] = $product_override_price;
}

Replace it by:
Code: [Select]
if ($override==-1) {
$this->productPrices['discountedPriceWithoutTax'] = $product_override_price;
if (!empty($variant)) $this->productPrices['discountedPriceWithoutTax'] += $variant;
}

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3335
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Variant price not added when the product price is overrided
« Reply #1 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.