Jump to content

Showing orginal and reduced price when onsale and only org.price when not onsale


Recommended Posts

Hi guys

I really hope you can help me with this.

A simple "IF/Else" sentence should do it, but I cant get it to work.


I have made the following change to my "product-list.tlp" so I can show both the before and after price when a item is onsale.


<span class="old_price_display">{convertPrice price=$product.price_without_reduction}</span>


This works perfect, but when the product is not onsale it shows the same price twice.


How can I make the "old_price_display" class hide the price when the item is not onsale, so you only see one price?


Thank you all in advance.



Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...