Hi,
How can you test if a product has a discount, and change the look and feel accordingly?
We have tried with:
<!--@If (@Ecom:Product.Discount.TotalAmountWithVAT<=0)--> <span class="regular-price" id="product-price-169"> <span class="price"><!--@Ecom:Product.Price--></span> </span> <!--@EndIf-->
And, for a product with a discount:
<!--@If (@Ecom:Product.Discount.TotalAmountWithVAT>0)--> <span class="regular-price" id="product-price-169"> <span class="price" style="text-decoration:line-through;"><!--@Ecom:Product.Price--></span> <span class="price"><br />Tilbudspris: <!--@Ecom:Product.Discount.Price--></span> </span> <!--@EndIf-->
But it seems the operators >,<,=,== and so on is not working!
Please help!