Jump to content

Recommended Posts

Hi!

I'm trying to set the lenght of product name in category view.
I've tried to edit product.tpl and increase the truncate value but it doesn't work.

What can i else try?

Share this post


Link to post
Share on other sites

Hi, 

I'll need to create a rule of posting soon.

1. First of all are we talking about Ps 1.5, 1.6 , 1.7 - This is important as solution's differ based upon the Prestashop version. 

2. On the category view the product_list is used, but Is aw also themes where the truncate text part was solved using a CSS trick ellipsis. 

3. Would be great to have a URL- in case you don't mind. 

We're here to help, I'm sure we'll get it solved:)

Cheers, 

Leo

 

Share this post


Link to post
Share on other sites
Posted (edited)

Yes i did, set to 50. Previously there it was set to 25 but as you can see on the website it seems more truncated at 20 so i think must be somewhere else too

Edited by aezakmi (see edit history)

Share this post


Link to post
Share on other sites
Just now, Prestachamps said:

Just a short question: Did you do the truncate change  inside the classic theme or your Ht1028 ? 

Regards, 

Leo

Hi!

Inside the HT1028 theme

Share this post


Link to post
Share on other sites

Hi,

it's still being truncated from CSS:

in file: https://taglioestampa.it/themes/HT1028/assets/css/custom.css , line 2550

comment out this line

    white-space: nowrap;

from the CSS rule : .subpage .innovatoryProductGrid .productName a, .itcolumn .productName a, .innovatoryProductGrid .productName a, .ui-front.ui-menu .ui-menu-item .search-item .product-name

Kind regards, Leo

Share this post


Link to post
Share on other sites
1 hour ago, Prestachamps said:

Hi,

it's still being truncated from CSS:

in file: https://taglioestampa.it/themes/HT1028/assets/css/custom.css , line 2550

comment out this line


    white-space: nowrap;

from the CSS rule : .subpage .innovatoryProductGrid .productName a, .itcolumn .productName a, .innovatoryProductGrid .productName a, .ui-front.ui-menu .ui-menu-item .search-item .product-name

Kind regards, Leo

 

Yes, that's it.

Thank you so much Leo!

Share this post


Link to post
Share on other sites
  • aezakmi changed the title to [SOLVED] Product name lenght

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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