Blint Posted August 1, 2012 Share Posted August 1, 2012 Hello everyone! I would like to display the old price for an item in "Featured Products on the homepage" Like on the product's page. There is the new price and the old price overlined. Can you show me how? Thanks! Link to comment Share on other sites More sharing options...
Médéric Posted August 1, 2012 Share Posted August 1, 2012 (edited) Hi,I tested with version 0.9 of the module but it should work also with earlier.You have to edit two files in the modules section if you don't have an override of them on your theme.../modules/homefeatured/homefeatured.tpl../modules/homefeatured/homefeatured.cssIn homefeatured.tpl after price, perhaps for you also line 45, put : <span class="price-discount">{convertPrice price=$product.price_without_reduction}</span> In homefeatured.css :#featured-products_block_center .price-discount { text-decoration: line-through; color:red; } Edited June 30, 2015 by Médéric (see edit history) Link to comment Share on other sites More sharing options...
Blint Posted August 1, 2012 Author Share Posted August 1, 2012 Worked perfectly. Thanks for you help! My version: (.../modules/homefeatured/homefeatured.tpl) {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br><span style="text-decoration: line-through">{convertPrice price=$product.price_without_reduction}</span></p>{else}<div style="height:21px;"></div>{/if} 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