need4speed Posted January 12, 2011 Share Posted January 12, 2011 How can i show the old price on the product listing page?I have been searching the forum for a solution. But the one I found wasnt really working. Link to comment Share on other sites More sharing options...
plesant6ldwy1 Posted January 13, 2011 Share Posted January 13, 2011 Yeah, I was looking for the same quiestion, I wonder does anyone know personal statements how to solve this issue?Thanks in advance! Link to comment Share on other sites More sharing options...
need4speed Posted January 13, 2011 Author Share Posted January 13, 2011 I manage to make a solution.Replace: {l s='Price lowered!'}{/if} With: {l s='Price lowered!'} {/if} {if $product.on_sale} {convertPrice price=$product.price_without_reduction} {/if} Link to comment Share on other sites More sharing options...
hurray Posted January 17, 2011 Share Posted January 17, 2011 Thanks for this solution. But what do I need to do, if I want the old price crossed out and have the discount % displayed as well (kind of like in special block module)? Link to comment Share on other sites More sharing options...
need4speed Posted January 17, 2011 Author Share Posted January 17, 2011 just edit your custom.css file and add.old_price { text-decoration:line-through }I dont know about the percent discount text but it should be possible. Link to comment Share on other sites More sharing options...
hurray Posted January 17, 2011 Share Posted January 17, 2011 I already have .old_price { text-decoration:line-through } in my global.css file.It still does not display the line-through the old price and the % discount. Link to comment Share on other sites More sharing options...
need4speed Posted January 17, 2011 Author Share Posted January 17, 2011 try changing the class name or change it to a ID insteadID version:#old_price { text-decoration:line-through } Link to comment Share on other sites More sharing options...
hurray Posted January 17, 2011 Share Posted January 17, 2011 Ok, this is what I have in the CSS file.#primary_block form#buy_block p#old_price{ font-size:1em; text-align:right; text-decoration:line-through;What do I need to change here? Link to comment Share on other sites More sharing options...
need4speed Posted January 17, 2011 Author Share Posted January 17, 2011 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 More sharing options...
hurray Posted January 17, 2011 Share Posted January 17, 2011 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 More sharing options...
Ralf mit F Posted March 16, 2011 Share Posted March 16, 2011 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 More sharing options...
johnwright Posted March 1, 2012 Share Posted March 1, 2012 anyone get this working Link to comment Share on other sites More sharing options...
stevejohn Posted March 1, 2012 Share Posted March 1, 2012 Just wondered if you ever figured this out as Im wanting to do the same.. :-) Link to comment Share on other sites More sharing options...
Recommended Posts