Jump to content

[SOLVED] Crossed old price on Prestashop 1.5.6.1


Recommended Posts

Hi,

i need some help, i need that old prices will be shown on Prise list. So i find code and instert it in price-list.tpl file. He works great and now i can see a product old price, but... But i need that this old price will be crossed and dont know how to do that, I searched in the forums and finded css codes, but no ones worked at all. Any solution?

post-731332-0-27090400-1388746151_thumb.png

Edited by romienas (see edit history)
Link to comment
Share on other sites

Hi.

 

Add a class to the HTML element that contains the old price, e.g.:- old_price

Add the old price to the css file and set its style as: text-decoration:line-through;

 

Regards.

 

Robin.

 

The CartExpert Team

thank you for your replay Robin,

i'm not good in php. So can you explain more how do that?

I use that code in price-list.tpl file:

{if isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
    <span id="old_price_display">{convertPrice price=$product.price_without_reduction}</span>
{/if}
Link to comment
Share on other sites

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...