Dox Posted March 9, 2012 Share Posted March 9, 2012 Hello everyone, can delete the limit of 255 characters in the edit field of features? Link to comment Share on other sites More sharing options...
phrasespot Posted March 11, 2012 Share Posted March 11, 2012 Take backups Locate the file /installroot//classes/FeatureValue.php, change: protected $fieldsSizeLang = array('value' => 255); to protected $fieldsSizeLang = array('value' => 512); Use PHPMyAdmin or similar and locate table PREFIX_feature_value_lang. Change column data type from VARCHAR(255) to VARCHAR(512) Link to comment Share on other sites More sharing options...
Dox Posted March 15, 2012 Author Share Posted March 15, 2012 Can i put value free? Link to comment Share on other sites More sharing options...
phrasespot Posted March 15, 2012 Share Posted March 15, 2012 If you mean unlimited, no. There is database and engine enforced row and column limits. Using the same data type (VARCHAR) you can safely go up to several thousands characters, just increase the value 512 (within reason) to whatever you think will be enough, though using too long of a feature value name will surely mess up the display in several places in FO and BO. Link to comment Share on other sites More sharing options...
ALMAJ Posted January 24, 2014 Share Posted January 24, 2014 This code no longer works on Prestashop 1.5.6.2 the code now is different So, to change the description max 255 character limit on features field find and open the file classes/FeatureValue.php and find this code: // Lang fields 'value' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 255) change to: // Lang fields 'value' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 512) Use PHPMyAdmin or similar and locate table PREFIX_feature_value_lang. Change column data type from VARCHAR(255) to VARCHAR(512) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now