karelfelipe Posted April 13, 2016 Share Posted April 13, 2016 Hello! I'm trying to get my back office (order info, invoices, delivery slips) to display the full length of the product name. I increased the character limit of all items with a limit of 128 or 255 in the /classes/Product.php file. I put it at 500 characters, but I need maybe 300 or so. Our products are combination products (configurable online) and there are a lot of options, so the name can be quite long. I have tried clearing caches and making sure I edited the file and uploaded successfully, but unfortunately I'm still not seeing any changes. This seems to only affect the back office. The front end shows the full product titles beyond 255 characters, but I believe it always has. Please see the attached photo below so you can see what I mean. The cutoff point is the same in the PDF invoices and delivery slips as well. Our website is at https://lotuscomputerusa.com/shop/ Thanks in advance for your help! I'm loving PrestaShop so far -Karel Link to comment Share on other sites More sharing options...
karelfelipe Posted April 14, 2016 Author Share Posted April 14, 2016 I did it! I used Dreamweaver to search the database (which I downloaded in SQL format from the Back Office) for any instances of "255" and I found it in the database table _order_detail in the "product_name" field. I increased the limit, added a new product to a test order and now it looks perfect. I made this edit directly in PHPMyAdmin. Question: Does anyone know if future updates of PrestaShop might overwrite this change I made to the DB? Thanks! Link to comment Share on other sites More sharing options...
Skydone Posted July 21, 2016 Share Posted July 21, 2016 I don't understand why the product name must have less than 255 characters, I have some products with a lot of attributes which has more than 300 characters in the order. I have made this change too, I hope that does not affect the operation of the store. Thank you! Link to comment Share on other sites More sharing options...
Adrian Posted October 9, 2019 Share Posted October 9, 2019 I don't know if you'll still be in the forum but you just gave me the solution. 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