Jump to content

[solved] Ps 1.7.8 Product title truncate, no action increments characters


@diegofrancesco

Recommended Posts

Hello,

I'm on Prestashop 1.7.8 and I trying to increase the character limit for product titles, which are very long in my case. I have tried several solutions found here on the forum but none seem to work, even cleaning the cache from BO or deleting the cache folder. There is no CSS side block.

For example on product.tpl from

{$product.name|truncate:30:'...'}

to

{$product.name|truncate:70:'...'}

Up until 1.7.2 I always did it without problems by modifying the product.tpl file.

 

What else could I try? Thanks to anyone who has helpful suggestions.

 

Edited by @diegofrancesco
solved (see edit history)
Link to comment
Share on other sites

1 godzinę temu, @diegofrancesco napisał:

Hello,

I'm on Prestashop 1.7.8 and I trying to increase the character limit for product titles, which are very long in my case. I have tried several solutions found here on the forum but none seem to work, even cleaning the cache from BO or deleting the cache folder. There is no CSS side block.

For example on product.tpl from

{$product.name|truncate:30:'...'}

to

{$product.name|truncate:70:'...'}

Up until 1.7.2 I always did it without problems by modifying the product.tpl file.

 

What else could I try? Thanks to anyone who has helpful suggestions.

 

If you want to change lenght on product listing thats the correct way to do it. I just checked it on my localhost ps 1.7.8.9 and it is working with product.tpl
Try to remove turncate entirely and check if anything changes. Other than that, there might be some override from custom module. 
Check istalled modules if some of them are using this hook "actionPresentProductListing".

Link to comment
Share on other sites

Hi,

When we increase the size of the column from the ps_product_lang table, we need to update the product class as well located in the classes folder to synchronize with the database column size otherwise, it might give an error.

Attached is a screenshot for your reference.

 

 

fdgfgfdggdgfd.png

Link to comment
Share on other sites

  • @diegofrancesco changed the title to [solved] Ps 1.7.8 Product title truncate, no action increments characters

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