sbt Posted August 6, 2014 Share Posted August 6, 2014 (edited) Hi, How to show discounted amount in red? Just like the percentage. Under category page and search result page, the discounted amount is not shown in red, only a strike through of the original price and a new price. In product page, it is perfectly shown there. How to make the other pages show the same like in the product page? Thanks Kent Somehow, I got the result by editing product-list.tpl and global.css and I change it to solved. Edited August 11, 2014 by sbt (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2014 Share Posted August 6, 2014 product-list.tpl change: <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> to: <span class="price-percent-reduction"> {displayWtPrice p=$product.price_without_reduction} </span> Link to comment Share on other sites More sharing options...
sbt Posted August 6, 2014 Author Share Posted August 6, 2014 product-list.tpl change: <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> to: <span class="price-percent-reduction"> {displayWtPrice p=$product.price_without_reduction} </span> Thank you Milos, But it is not showing as expected, please see attachment (after.jpg). Do i miss something? My intention is to let all the page to display the prices like this( attachment good.jpg). It is correctly shown at product page, but not other pages. Thanks again! Kent Link to comment Share on other sites More sharing options...
vekia Posted August 7, 2014 Share Posted August 7, 2014 so you just mean that you can display discount value (in dollars for example) not price before discount ? Link to comment Share on other sites More sharing options...
sbt Posted August 7, 2014 Author Share Posted August 7, 2014 so you just mean that you can display discount value (in dollars for example) not price before discount ? Yes, this is what I want to do. Sorry for not making it clear in the first post. How can this be done, then? Thanks kent Link to comment Share on other sites More sharing options...
sbt Posted August 9, 2014 Author Share Posted August 9, 2014 (edited) Only me have this request? What I want is: -old price (strike-through) -reduction (percentage/amount), in red font -new price PS1.6 only show percentage right, but not in amount at product-list.tpl page. PS: Tried to search the forum for a solution and found one post here, unluckily it is for PS1.4 and PS1.5 and I cannot find the code mentioned in the post in the 1.6 version. Edited August 9, 2014 by sbt (see edit history) Link to comment Share on other sites More sharing options...
sbt Posted August 10, 2014 Author Share Posted August 10, 2014 I tried very hard to find the code in product-list.tpl, and found that the following code is there, {if $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} This should be the one showing percentage, but I cannot find another if for "amount". Maybe this is the reason why the amount reduced is not shown? Anyone kind enough to provide a code to show the reduced amount? Link to comment Share on other sites More sharing options...
vekia Posted August 10, 2014 Share Posted August 10, 2014 i think that this topic has got solution for your question: http://www.prestashop.com/forums/topic/151912-recap-dinfos-utiles-a-ajouter-sur-product-listtpl-et-producttpl/ dorry for the french language, but with google translate it will not be a problem :-) Link to comment Share on other sites More sharing options...
sbt Posted August 10, 2014 Author Share Posted August 10, 2014 i think that this topic has got solution for your question: http://www.prestashop.com/forums/topic/151912-recap-dinfos-utiles-a-ajouter-sur-product-listtpl-et-producttpl/ dorry for the french language, but with google translate it will not be a problem :-) Thank you Milos, but is that supposed to be working for PS1.4 and PS1.5? Still searching for a solution. Thanks! Kent Link to comment Share on other sites More sharing options...
Recommended Posts