Jump to content
b22c

Return description to home featured products (1.6)

Recommended Posts

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...

Share this post


Link to post
Share on other sites

Open yourtheme/css/product_list.css and find this code:

ul.product_list.grid > li .product-container .product-desc {

    display: none;
}

Delete display:none

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by dioniz (see edit history)

Share this post


Link to post
Share on other sites

Hi Dioniz, it work thanks.

Just other question: its possible to show only lets say 50 characters and after that hide?

Edited by b22c (see edit history)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Yes, hope so

 

I did it simple by copying code from product-list.tpl to homefeatured.tpl and truncated it there

Edited by dioniz (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More