peter4661 Posted February 28, 2022 Share Posted February 28, 2022 Hi forum members, Until release of Prestashop V 1.7.8.2 I knew how to specify the length of product titles (truncate | product.tpl). With update 1.7.8.3, this approach no longer valid. Does anyone know where to change / specify the product title length in V1.7.8.3? Link to comment Share on other sites More sharing options...
JBW Posted February 28, 2022 Share Posted February 28, 2022 Truncate still works same way e.g. {$product.name|truncate:30:'...'} Link to comment Share on other sites More sharing options...
peter4661 Posted March 1, 2022 Author Share Posted March 1, 2022 (edited) Hi JBW, Thank you for your reply. Unfurtunatly, changing the value at mytheme/template/catalog/partials/miniatures/product.tpl followed by: backoffice, clear cache, backoffice: force template FTP: Clear smarty cache does not give any change in front office. I did fresh install dev-site and tried to change lenght product title to {$product.name|truncate:10:'...'}... followed by backoffice, clear cache, backoffice: force template FTP: Clear smarty cache No change in front office What could I do wrong? Edited March 1, 2022 by peter4661 (see edit history) Link to comment Share on other sites More sharing options...
peter4661 Posted March 4, 2022 Author Share Posted March 4, 2022 I tried again to set lenght of product title: reduced it to 10, set it to 100. No change in the front office. If I am the only one with this issue, then then problem might not with Prestashop, then I really don’t know where to look for….. server related, PHP version ? JBW said, is stil working the same way. I have no idea why it is not working on my site. Can anybody respond to my question if you are experiencing problems with truncate product title? On 2/28/2022 at 5:49 PM, JBW said: Truncate still works same way e.g. {$product.name|truncate:30:'...'} Link to comment Share on other sites More sharing options...
Ress Posted March 4, 2022 Share Posted March 4, 2022 Most likely I think you don't change where you should. If you make another change, does it apply? For example, to add a new class? Link to comment Share on other sites More sharing options...
JBW Posted March 4, 2022 Share Posted March 4, 2022 Or you have a cache issue. Add some other text and see if it get visible. If not try to hard clear cache (delete /var/cache on FTP) Link to comment Share on other sites More sharing options...
Luis C Posted March 15, 2022 Share Posted March 15, 2022 On 3/4/2022 at 9:34 AM, peter4661 said: I tried again to set lenght of product title: reduced it to 10, set it to 100. No change in the front office. If I am the only one with this issue, then then problem might not with Prestashop, then I really don’t know where to look for….. server related, PHP version ? JBW said, is stil working the same way. I have no idea why it is not working on my site. Can anybody respond to my question if you are experiencing problems with truncate product title? Please, be aware that the product name is called in several places and files. Depending on what you want to change, you must modify the correct file and instance of {$product.name} Truncate MUST work because it's just a php modifier included in smarty, so you should be able to truncate any string. If you can elaborate where you want the product title to be shortened, we might have a chance to help you. Link to comment Share on other sites More sharing options...
peter4661 Posted March 17, 2022 Author Share Posted March 17, 2022 Hi Louis, thank you for your reply. I did seek for help in the Dutch Prestashop community. A developer was be able to solve the problem. Which seemed to be related to server caching issue (Litespeed) which prevented to show change in the front. 2 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