Jump to content

[SOLVED] How can i show the old price on the product listing page?


Recommended Posts

I whould edit the php product list file and change the old_price class to an id instead eg. id="oldpricelist"

add this line to your custom.css file

#oldpricelist p{ font-size:1em; text-align:right; text-decoration:line-through;

See if it changes anything.

Or can you send me the link to your site?

Link to comment
Share on other sites

I did exactly what you told me to and it did not work.

However I was looking around Special Block Module since I would like the items to have their old and new prices displayed in a similar manner. And I found this code :

{$special.name|escape:html:'UTF-8'}
{if !$priceDisplay}{displayWtPrice p=$special.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}
               {if $special.reduction_percent}(-{$special.reduction_percent}%){/if}
{if !$priceDisplay}{displayWtPrice p=$special.price}{else}{displayWtPrice p=$special.price_tax_exc}{/if}



I think I would need something similar to put in product_list.tpl. But I am not a programmer so I do not know exactly what to modify in the above codes.

Link to comment
Share on other sites

  • 1 month later...

hey there, I found a solution that worked for me - maybe it's helpful for someone else:

I put the following code to my homefeatured.tpl

{if $product.on_sale}
{convertPrice price=$product.price_without_reduction}
{/if}




{if !$priceDisplay}{convertPrice price=$product.price}



and I see the "old" price crossed out and the new one too!

Link to comment
Share on other sites

  • 11 months later...
×
×
  • Create New...