Jump to content

short description character limit


Recommended Posts

I do believe we are talking about the same thing. I am trying to increase the product's short description character limit. at present, it is 400 characters but it needs to be 600. I have changed the following lines of code (starting on line 229) in the classes/product.php file in an attempt to change this limit:

public function validateFieldsLang($die = true)
{
foreach ($this->description_short as $k => $value)
if (strlen(strip_tags($value)) > 600)
{
if ($die) die (Tools::displayError().' ('.get_class($this).'->description: length > 600 for language '.$k.')');
return false;
}
return parent::validateFieldsLang($die);
}



this is the only place in the file that i found the number '400'. however, i still get an error when i input more than 400 characters into the short description. i am working with a custom theme that was created by someone else so i don't know if that may have something to do with why it's not working. or, i could just be completely in the wrong place. am i in the right place if i'm trying to change this limit? if not, where do i need to be looking? thanks.

floyd

Link to comment
Share on other sites

i changed the 400s to 600s in that file but i still get an error. however, it is a different error. instead of the error saying something about the description_short being too long, i now get: an error occurred while updating object product. anymore ideas? thanks

Link to comment
Share on other sites

  • 3 years later...
×
×
  • Create New...