Jolkro Posted January 25, 2012 Share Posted January 25, 2012 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. /Ole Link to comment Share on other sites More sharing options...
Aldeag Posted January 25, 2012 Share Posted January 25, 2012 I had a similar problem in the spanish forum. Try using Google translator to understand: http://www.prestashop.com/forums/topic/150360-doble-precio/ Link to comment Share on other sites More sharing options...
goodsan40 Posted March 5, 2012 Share Posted March 5, 2012 Hi! Maybe, {if $product.reduction}<span id="old_price_display" style="text-decoration:line-through;">{convertPrice price=$product.price_without_reduction}</span> {/if} 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now