Jump to content

[solved]PS1.6.0.9 how to show discounted amount in red


sbt

Recommended Posts

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.

post-734648-0-10944100-1407323809_thumb.jpg

post-734648-0-63217300-1407323819_thumb.jpg

post-734648-0-50990400-1407323832_thumb.jpg

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

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

 

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

post-734648-0-88523400-1407362889_thumb.jpg

post-734648-0-37142200-1407363045_thumb.jpg

Link to comment
Share on other sites

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

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 by sbt (see edit history)
Link to comment
Share on other sites

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

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

×
×
  • Create New...