MarlboroMan Posted July 28, 2017 Share Posted July 28, 2017 Good Day How do I Increase the max allowable characters for the below fields Reference length limit to more than 32 Characters Description limit to more than 6000 Characters Product Name limit to more than 128 Characters Link to comment Share on other sites More sharing options...
vekia Posted July 28, 2017 Share Posted July 28, 2017 Reference length limit to more than 32 Characters open classes/Product.php and change line: 'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 32), to: 'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 64), then in shop database you have to change the definition of "reference" column from VARCHAR(32) to VARCHAR(64) you can follow the same steps for other fields (btw. description does not have any limit) Link to comment Share on other sites More sharing options...
MarlboroMan Posted July 29, 2017 Author Share Posted July 29, 2017 (edited) Thank you. Where do I find the reference column? Will these settings change back with the next update? I'm using PS V1.7.2.0 Edited July 29, 2017 by MarlboroMan (see edit history) Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 3, 2017 Author Share Posted October 3, 2017 Hi Where do I find the reference column mentioned at the start of this post? Will these settings change back with the next update? I'm using PS V1.7.2.0 Link to comment Share on other sites More sharing options...
Scully Posted October 3, 2017 Share Posted October 3, 2017 When you edit products. Reference is the field for a product number. Changes are overwritten by updates if you don't use the override directories. Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 3, 2017 Author Share Posted October 3, 2017 Hi Scully I'm trying to Increase Product Name limit to more than 128 Characters like mentioned above. How do I do this so that it will not change back after an update? "Not sure how to use override directories in presta 1.7" Link to comment Share on other sites More sharing options...
Scully Posted October 3, 2017 Share Posted October 3, 2017 Read this: http://doc.prestashop.com/display/PS16/Overriding+default+behaviors and this... http://developers.prestashop.com/themes/modules/overriding.html Plenty of documentatino for overriding. It doesn't make sence to duplicate all the content from the refered pages. Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 7, 2017 Author Share Posted October 7, 2017 (edited) open classes/Product.php and change line: 'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 32), to: 'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 64), then in shop database you have to change the definition of "reference" column from VARCHAR(32) to VARCHAR(64) you can follow the same steps for other fields (btw. description does not have any limit) Hi Vekia Where in the database do I find the "reference" column to change VARCHAR(32) to VARCHAR(64)? Edited October 7, 2017 by MarlboroMan (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted October 12, 2017 Share Posted October 12, 2017 Sometimes I wonder about questions. To what kind of data does reference belong to? If you can answer this question, you'll easily find the table related. Link to comment Share on other sites More sharing options...
jul57 Posted November 8, 2017 Share Posted November 8, 2017 (edited) Have the same problem Has anyone found a solution for this? Edited November 8, 2017 by jul57 (see edit history) Link to comment Share on other sites More sharing options...
Amin Vatandoust Posted August 14, 2018 Share Posted August 14, 2018 To change the VARCHAR(32) in database, just follow these steps on phpMyAdmin: 1. Find "ps_product" table (or your custom prefix). 2. Click on + to open it. 3. Click on "Columns" and scroll down to find "reference" then click on it. 4. Now you can change Length to your custom character length. That's all. Link to comment Share on other sites More sharing options...
stdeykun Posted September 12, 2018 Share Posted September 12, 2018 The reference field can be found in ps_product_attribute ( for combinations ) too. Link to comment Share on other sites More sharing options...
burakpresta3 Posted April 23, 2020 Share Posted April 23, 2020 Hi @vekia, @Amin Vatandoust and all others, i dont want open a new topic, i need to change the lenght of the customer service message (contact us), they are sending spams. if i make the "char size" smaller it is going to be better. under classes/customermessege .php 'message' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 16777216), but it gives 500error, if char size bigger then this value, will you please help ? version 1.7.6.4 thank you very much. Link to comment Share on other sites More sharing options...
burakpresta3 Posted April 28, 2020 Share Posted April 28, 2020 any idea about changing customer message size ? for 1.7.6.4 Link to comment Share on other sites More sharing options...
Amin Vatandoust Posted April 30, 2020 Share Posted April 30, 2020 @burakpresta3 I have no idea about it. you may need to turn on debug and check what is the error. But, if you want to avoid spams, why you are not trying google reCAPTCHA? 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