This case has been resolved.
The problem was; the module was calculating the OLD price wrongly. Because module was doing this calculation to get the old price:
OLD_price = New+Price - Discount
But in case the Discount value is positive, the correct calculation should have been:
OLD_price = NEW_price + Discount
FYI: in the latest Virtuemart versions, the discount prices have negative value.
For those who have a similar problem. The solution has been applied to module permanently, but you may also resolve this problem by yourself with a simply coding changes;
(with the code below, it won't matter if the discount is negative or positive, the solution will always be correct)
1- Open this PHP file:
/modules/mod_flexible_vm_pros_by_cats/tmpl/default.php
Look for this line (line 93rd)
$price_before_discount = $item->prices['salesPrice'] - $item->prices['discountAmount']; ?>
Replace it with this:
$price_before_discount = $item->prices['salesPrice'] + abs($item->prices['discountAmount']); ?>
Case solved, topic closed.
Regards,
Support