Vaidas Posted December 19, 2010 Share Posted December 19, 2010 Hello, i'd search in forume but have not found the right decision how to put on sale icon and old price in homefeatured and product list page. Now on sale icon and old price is only in product page.Can any body help? Link to comment Share on other sites More sharing options...
Vaidas Posted December 19, 2010 Author Share Posted December 19, 2010 Can any body help please? I made few changes in homefeatured and product-list.tpl but without succes Link to comment Share on other sites More sharing options...
Pippo3000 Posted January 10, 2011 Share Posted January 10, 2011 Hello, i'd search in forume but have not found the right decision how to put on sale icon and old price in homefeatured and product list page. Now on sale icon and old price is only in product page.Can any body help? I would like to know the answer to this, too. does make no sense to have something featured on the first page and then not show sale or specials.phil Link to comment Share on other sites More sharing options...
hups Posted January 11, 2011 Share Posted January 11, 2011 I also would liek to klnow the answer to this. Did either of you figure this out? Link to comment Share on other sites More sharing options...
rocky Posted January 12, 2011 Share Posted January 12, 2011 To add the "On sale" image to product-list.tpl, change lines 12-13 of product-list.tpl from: {if $product.on_sale} {l s='On sale!'} to: {if $product.on_sale} <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/> {l s='On sale!'} Link to comment Share on other sites More sharing options...
need4speed Posted January 12, 2011 Share Posted January 12, 2011 Still wondering how to get the old price to show on the product listing Link to comment Share on other sites More sharing options...
hurray Posted January 15, 2011 Share Posted January 15, 2011 I would also like to know how we can have the old price crossed out and new price displayed with sale % on the product list page just like in product detail page. Link to comment Share on other sites More sharing options...
rocky Posted January 17, 2011 Share Posted January 17, 2011 Looks like this has been solved in another post here. Link to comment Share on other sites More sharing options...
yabonga Posted March 16, 2011 Share Posted March 16, 2011 To add the "On sale" image to product-list.tpl, change lines 12-13 of product-list.tpl from: {if $product.on_sale} {l s='On sale!'} to: {if $product.on_sale} <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/> {l s='On sale!'} Thank you so much for your help! Now, I have one problem. My onsale icon is too big, it fits the whole product image. How can i fix that? The image size should be like 50px in width and height. I see no size attributes in the global.css, there´s only one option "float:left". It seems like that its controlled by the height and width attributes of the following line in global.css: #center_column .categorie_product img But this also controls the product images. Thank you so much in advance!(This is a 50px test Image, it says "new" but of course it should say something like "sale" or similar in german) Link to comment Share on other sites More sharing options...
need4speed Posted March 16, 2011 Share Posted March 16, 2011 You just need to make a version for every language FXonsale_de.gifonsale_gb.gifonsale_da.gif Link to comment Share on other sites More sharing options...
yabonga Posted March 16, 2011 Share Posted March 16, 2011 You just need to make a version for every language FXonsale_de.gifonsale_gb.gifonsale_da.gif Thank you for your quick response! I copied the onsale_en.gif and called it onsale_de.gif. But its the same problem. The image is stretched (screenshot attached). I use the matrice theme, maybe the author made some changes in the code. Ive never had an onsale icon in the product description for exemple. my product-list.tpl: {if $product.on_sale} {l s='On sale!'}... and my global.css: #primary_block form#buy_block img.on_sale_img{float:left;} Thank you for any help! Link to comment Share on other sites More sharing options...
yabonga Posted March 16, 2011 Share Posted March 16, 2011 It has something to do with the modded product-list.tpl from the matrice theme!I copied the standard product-list.tpl from the prestashop theme, then I added the code above. Now the onsale icon appears normal (original size).I have to figure it out for myself. Thank you guys Link to comment Share on other sites More sharing options...
noesac Posted March 16, 2011 Share Posted March 16, 2011 Cool I'm going to do this once I have the time 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