b22c Posted April 12, 2014 Share Posted April 12, 2014 Hi, is there a way or module that put a little discription below the tittle on the home featured products like prestashop 1.5 does? On 1.6 only show the tittle... Link to comment Share on other sites More sharing options...
dioniz Posted April 12, 2014 Share Posted April 12, 2014 Open yourtheme/css/product_list.css and find this code: ul.product_list.grid > li .product-container .product-desc { display: none; } Delete display:none Link to comment Share on other sites More sharing options...
Paulito Posted April 12, 2014 Share Posted April 12, 2014 Good morning Dioniz Sorry to be nosy and I do not mean to high jack this topic but I am curious, what effect does deleting "display none" have. I tried but nothing changed, I have to say that I have probably got the end of the stick Paul Link to comment Share on other sites More sharing options...
dioniz Posted April 12, 2014 Share Posted April 12, 2014 (edited) Hey Paulito! In 1.6 product description is in homefeatured module, right under product name but is hidden with display:none style. If you delete that style or only display:none in a style, description will become visible. One more thing. This will make product description visible in product grid too! Have you tried that on 1.6 default theme? Edited April 12, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
b22c Posted April 12, 2014 Author Share Posted April 12, 2014 (edited) Hi Dioniz, it work thanks. Just other question: its possible to show only lets say 50 characters and after that hide? Edited April 12, 2014 by b22c (see edit history) Link to comment Share on other sites More sharing options...
Paulito Posted April 12, 2014 Share Posted April 12, 2014 Dioniz Sorry my fault, I had same site open in two browsers so did not see the change, It would be good to truncate the description though Paul Link to comment Share on other sites More sharing options...
dioniz Posted April 12, 2014 Share Posted April 12, 2014 Homeslider is parsing code from product-list.tpl so you need to truncate it there {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} but it will truncate it in product list too. Link to comment Share on other sites More sharing options...
Paulito Posted April 12, 2014 Share Posted April 12, 2014 Yes, just tried that before you posted, it's a shame you cannot truncate independently, of course someone may come up with a solution Paul Link to comment Share on other sites More sharing options...
dioniz Posted April 12, 2014 Share Posted April 12, 2014 (edited) Yes, hope so I did it simple by copying code from product-list.tpl to homefeatured.tpl and truncated it there Edited April 12, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
nixydix Posted September 20, 2014 Share Posted September 20, 2014 (edited) Great solution. Edited September 27, 2014 by nixydix (see edit history) Link to comment Share on other sites More sharing options...
SOUPE1000 Posted April 10, 2017 Share Posted April 10, 2017 Hello, I want delete short description in my featured products in home but I went to product list.css and "display none" was already added ul.product_list.grid > li .product-container .product-desc { display: none; } You can visit my web www.tpvsyregistradoras.es and you can see description. Do you know what I must change for delete short description of featured block? Many thanks. 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