VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: giordenzo on September 19, 2017, 11:13:40 AM

Title: Label Discount " To Be or Not To BE"
Post by: giordenzo on September 19, 2017, 11:13:40 AM
Hello Team
I have a problem with Virtuemart 3.2.2 and joomla 3.7.5
I try to explain the problem, sorry for my bad engllish  :-[ when a discount is applied to a product:
example
Basic price 100 € (it's ok)
Price 99 (even here is right)
discount - 1 (and this is also perfect)
but if I remove the discount on a product
have thei results
Basic price 100 € (ok)
Price 100 (also here is right)
discount (it remains the label discount and is not good) there is a way to remove the discount when not discount applyed?
if there is no discount on the product the label does not appear.

Thanks  in advance for you support
King Regards
ENzo


Title: Re: Label Discount " To Be or Not To BE"
Post by: GJC Web Design on September 19, 2017, 15:06:37 PM
in the sublayout prices.php do a compare of the retail->discount prices

if they are NOT equal show the discount stuff.. if equal don't show