afloyd60 Posted June 30, 2008 Share Posted June 30, 2008 can someone please tell me what file the short description character limit is defined in? Link to comment Share on other sites More sharing options...
DrÿSs' Posted July 1, 2008 Share Posted July 1, 2008 Hi,If you are talking about Product class, then in... class/Product.php Link to comment Share on other sites More sharing options...
afloyd60 Posted July 1, 2008 Author Share Posted July 1, 2008 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 More sharing options...
afloyd60 Posted July 4, 2008 Author Share Posted July 4, 2008 anybody have any ideas? thanks. Link to comment Share on other sites More sharing options...
coke Posted July 5, 2008 Share Posted July 5, 2008 try your admin directory/tabs/adminproducts.phpsearch 400 (line 541)Change that too 600 and try it. (I haven't tried it but you can) Link to comment Share on other sites More sharing options...
afloyd60 Posted July 6, 2008 Author Share Posted July 6, 2008 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 More sharing options...
ejectcore Posted July 6, 2008 Share Posted July 6, 2008 Send me FTP details & URL link via PM & I will have a quick look into this for you ;-) Link to comment Share on other sites More sharing options...
Neeeedhelpfastpls Posted October 11, 2011 Share Posted October 11, 2011 Hi, any help for ps 1.4? Desperately need to find a way for this. Link to comment Share on other sites More sharing options...
Recommended Posts