Jump to content

Extend Product Name to Longer than 255 Characters in Back Office


Recommended Posts

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.

 

post-1181541-0-20247400-1460584970_thumb.jpg

 

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

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

  • 3 months later...

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

  • 3 years later...

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