Developer forum

Forum » Templates » Disabling discounts

Disabling discounts


Reply

I have a site where I want a discount on all products at a specific time.

 

My problem is that the discount tags are generated on the product, even if there is no discount attached and then the IF tags cannot be used.

 

How is this supposed to work ?

 

 


Replies

 
Reply

Ok, the only solution to this problem is the following code:

 

<span class="campaignprice<!--@Ecom:Product.Discount.TotalPercentWithoutVATFormatted-->"><!--@Ecom:Product.Discount.Price--></span>

 

With the use of this CSS:
span.campaignprice0 {
 display: none;
}

 

@Ecom:Product.Discount.TotalPercentWithoutVATFormatted will always output 0 when no discount is applied.

 

You must be logged in to post in the forum