Mario Evangelista Posted July 11, 2024 Share Posted July 11, 2024 (edited) Hello good afternoon, I need help. I need to increase the product title limit, I already changed it in pss5_product_lang, however as soon as I try to change the title in the backoffice the message is always the same: "This value is too long. It should have 128 characters or less." Can anyone help me? Thanks. Edited July 12, 2024 by Mario Evangelista Solved (see edit history) Link to comment Share on other sites More sharing options...
Enumbin Posted July 11, 2024 Share Posted July 11, 2024 Hello You need to edit the core files of PS and the database. Let me explain below. Go to the file "/src/Core/Domain/Product/ProductSettings.php" and find the constant MAX_NAME_LENGTH and increase it. Then go to your database and find the product_lang table. and increase the limit of the name column. That will do. Another solution is to get modules like infofield, advanced custom field etc. that let you add advanced custom fields to your product page and then show the title with that. Regards TheEnumbin Link to comment Share on other sites More sharing options...
Mario Evangelista Posted July 12, 2024 Author Share Posted July 12, 2024 Hello, After all, thanks "TheEnumbin". I managed to change it as you told me, but it didn't work, the same error persists. I cleaned the cash after the change, but to no effect! Is this blockage somewhere else? Thanks Link to comment Share on other sites More sharing options...
Mario Evangelista Posted July 12, 2024 Author Share Posted July 12, 2024 (edited) Hello, I just managed to solve it, there was just one more step left, here's a tip for anyone who needs it: 1. You need to modify in db, pss5_product_lang, increase length of the "name" to xxxx 2. prestashop\src\Core\Domain\Product\ProductSettings.php public const MAX_NAME_LENGTH = xxxx; 3. prestashop\src\PrestaShopBundle\Form\Admin\Product\ProductInformation.php new Assert\Length(['min' => 3, 'max' => xxxx]), And its Done! Thanks a Lot! Edited July 12, 2024 by Mario Evangelista (see edit history) Link to comment Share on other sites More sharing options...
Mario Evangelista Posted July 12, 2024 Author Share Posted July 12, 2024 Solved! Link to comment Share on other sites More sharing options...
Enumbin Posted July 12, 2024 Share Posted July 12, 2024 Hello @Mario Evangelista I am glad that you solved it. And thanks for the extra step that I missed out. Thanks 1 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