Jump to content
karelfelipe

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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

I don't know if you'll still be in the forum but you just gave me the solution.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More