MarlboroMan Posted May 25, 2016 Share Posted May 25, 2016 Hi Guys Prestashop 1.6 is limited to accept product names only up to 128 Characters. Are there anyway I can make this more like 300 Characters when uploading via csv. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 25, 2016 Share Posted May 25, 2016 Try following these 2 steps. 1. Open database using PhpMyAdmin, search for table 'product_lang', now you need to change type of column "name". Change its type length from 128 to 300. 2. Now edit /classes/product.php file, search for "isCatalogName". Now in the search result line, replace 128 with 300. This should do the trick for you. PS: Don't forget to create database backup, just in case. Link to comment Share on other sites More sharing options...
MarlboroMan Posted May 25, 2016 Author Share Posted May 25, 2016 (edited) Hi Thanks for the info. Edited May 26, 2016 by MarlboroMan (see edit history) Link to comment Share on other sites More sharing options...
MarlboroMan Posted May 26, 2016 Author Share Posted May 26, 2016 "now you need to change type of column "name". Change its type length from 128 to 300" I found the table 'product_lang' but are not sure how to edit the column "name". Where or how do I change the length Must I add some code? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 26, 2016 Share Posted May 26, 2016 If you are using phpmyadmin, click on the structure tab in top bar on right side.... then search for column "name" in the list.. then click "change" against "name" column. Then you will find 128, just change it to 256 Link to comment Share on other sites More sharing options...
MarlboroMan Posted May 26, 2016 Author Share Posted May 26, 2016 Thanks! I'm learning something new every day. Will test this tonight. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 26, 2016 Share Posted May 26, 2016 Let us know if you need screenshots help for the same. Link to comment Share on other sites More sharing options...
MarlboroMan Posted May 26, 2016 Author Share Posted May 26, 2016 Changed the value's but when I try to import my csv I receive the following error. "Property Product->link_rewrite length (147) must be between 0 and 128" Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 26, 2016 Share Posted May 26, 2016 Have you made the suggested changes in code? Link to comment Share on other sites More sharing options...
MarlboroMan Posted May 26, 2016 Author Share Posted May 26, 2016 Yes, I've also tried lower values. Link to comment Share on other sites More sharing options...
MarlboroMan Posted May 27, 2016 Author Share Posted May 27, 2016 (edited) Hi Thanks for your help. I've also changed the link_rewrite length. Now I can import via csv also with long product names. Could there be any other complications because of the long "link_rewrite length" like on search engines and so on? Edited May 27, 2016 by MarlboroMan (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 28, 2016 Share Posted May 28, 2016 Hi, No, it will not cause any issue to you We are glad that your issue is fixed now. 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