romienas Posted January 3, 2014 Share Posted January 3, 2014 (edited) 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? Edited January 3, 2014 by romienas (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 3, 2014 Share Posted January 3, 2014 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 Link to comment Share on other sites More sharing options...
romienas Posted January 3, 2014 Author Share Posted January 3, 2014 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 More sharing options...
CartExpert.net Posted January 3, 2014 Share Posted January 3, 2014 Then put the following in the css file: #old_price_display { text-decoration:line-through; } Regards.Robin.The CartExpert Team 1 Link to comment Share on other sites More sharing options...
romienas Posted January 3, 2014 Author Share Posted January 3, 2014 Then put the following in the css file: #old_price_display { text-decoration:line-through; } Regards. Robin. The CartExpert Team It works! Thank you very much Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 3, 2014 Share Posted January 3, 2014 Please add [sOLVED] to the beginning of the topic's title. Regards.Robin.The CartExpert Team 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