@diegofrancesco Posted October 20, 2023 Share Posted October 20, 2023 (edited) 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 October 23, 2023 by @diegofrancesco solved (see edit history) Link to comment Share on other sites More sharing options...
WisQQ Posted October 20, 2023 Share Posted October 20, 2023 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 More sharing options...
musicmaster Posted October 22, 2023 Share Posted October 22, 2023 Did you change the size of the field in the ps_product_lang table? Link to comment Share on other sites More sharing options...
Zohaib-fk Posted October 23, 2023 Share Posted October 23, 2023 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. Link to comment Share on other sites More sharing options...
@diegofrancesco Posted October 23, 2023 Author Share Posted October 23, 2023 Thank you all, I checked what you wrote and I hadn't updated the ps_product_lang table correctly. The change is now displayed correctly. I mark the thread as resolved. Regards 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