VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: dnlvsci on September 27, 2013, 21:08:11 PM

Title: Child product pricing bug
Post by: dnlvsci on September 27, 2013, 21:08:11 PM
Hello!

I have a costumer, who use Vm2.0.14 (i know this is old vm, but it contain a lot of modification/hack so i dont want to update him) We programmed a child product module, what display child products like VM1. Evrything fine, but we found a big problem.

When we add a product override price for parent item, the child product price displaying go wrong. The salesprice show the child product discount amount (if contain something the Override filed display that price however we disabled the price override for child product, if no price in Override the program show 0 for sales price).

This bug not happen if I use discount type.

Have someone any tip? My module is commercial so I can give acces my code only who can help me :$

Thank you!
Title: Re: Child product pricing bug
Post by: Maxim Pishnyak on September 29, 2013, 21:35:24 PM
Quote from: dnlvsci on September 27, 2013, 21:08:11 PM
use Vm2.0.14 (i know this is old vm, but it contain a lot of modification/hack so i dont want to update him)
Lots of modification is not the answer. Having documented your hacks, using DiffMerge/Kdiff is.