Hello,
how can I hide the discount if it is zero?
----------------------
I found this solution
I had to take the opposite approach: show the discount if greater than zero.
if ($product->prices['discountAmount'] > 0.001) { echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$product->prices); }
In category tmpl (default.php) and default_products.php
very helpful - thanks a lot!
Hello,
Take a look on that post also: http://forum.virtuemart.net/index.php?topic=108865.msg364872#msg364872
Quote from: bytelord on October 19, 2012, 21:19:27 PM
Hello,
Take a look on that post also: http://forum.virtuemart.net/index.php?topic=108865.msg364872#msg364872
Hi,
yes. They work all three solutions.
:P