News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

If there's an override, custom field price is added twice

Started by rdcustom, May 22, 2024, 13:52:16 PM

Previous topic - Next topic

rdcustom

Since last updates I have a strange issue.

Let's assume I have a 100€ product with a 20€ option:

when the option is added the price is calculated correctly: 120€

BUT

when the product has a price override (ex. 90€)
the option is added twice (40€ instead of 20€)

instead of 110€ total I have 130€

this happens only when there's a price override

How to solve this issue?

rdcustom

I found myself the bug:

in calculationh.php - line 416

need to remove:

"if($variant){
            $this->productPrices['discountedPriceWithoutTax'] += $variant;
         }

"