Jump to content
Mark B

How do I change the character limit for the description? It's currently limited at 21844 chars.

Recommended Posts

Hi there,

I'm in the process of setting up my e-commerece store, many of the products have extended long descriptions which I need to fit but I'm being limited by the default size from installation.

image.png.f26e1f1745bb1c1ed8703941858f81bd.png

I'm pretty good when it comes to code so if there's a specific php file I need to modify that would be fine.

Prestashop version: 1.7.5


Thank-you for any help!

Edited by Mark B (see edit history)

Share this post


Link to post
Share on other sites
On 7/17/2019 at 5:33 PM, Mark B said:

I'm pretty good when it comes to code so if there's a specific php file I need to modify that would be fine.

Check

FormattedTextareaType.php

https://github.com/PrestaShop/PrestaShop/blob/develop/src/PrestaShopBundle/Form/Admin/Type/FormattedTextareaType.php

/** * Max size of UTF-8 content in MySQL text column */
const LIMIT_TEXT_UTF8 = 21844;

There might be side effects changing this so backup and test carefully.

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.
Note: Your post will require moderator approval before it will be visible.

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