Martin Y Posted September 22, 2016 Share Posted September 22, 2016 (edited) As title, I find answer as below, but does not work for me. (Multilingual V1.6.1.6) https://www.prestashop.com/forums/topic/377305-is-it-possible-to-increase-the-length-of-supplier-name/ I followed 2 steps as above to change, but it is still show length over 32. Thanks for any help Edited September 22, 2016 by Martin Y (see edit history) Link to comment Share on other sites More sharing options...
Teapot Creative Posted September 22, 2016 Share Posted September 22, 2016 Hi Martin, Have you tried going into cache folder in the root and deleting the class_index.php? As you are manipulating a core Class here, you need to refresh the class index in order for the changes to take effect. Many thanks, Ant. Link to comment Share on other sites More sharing options...
Martin Y Posted September 22, 2016 Author Share Posted September 22, 2016 (edited) Thanks Ant for help But It is still problem after deleted class_index.php. Edited September 22, 2016 by Martin Y (see edit history) Link to comment Share on other sites More sharing options...
Teapot Creative Posted September 22, 2016 Share Posted September 22, 2016 Hi Martin, Are you trying to alter the number of characters you can enter for a supplier name in the back office. Or are you referring to truncation of the suppliers name on the front shop itself? example: "Supplie..." Many thanks, Ant. Link to comment Share on other sites More sharing options...
Martin Y Posted September 23, 2016 Author Share Posted September 23, 2016 I enter for a supplier name in the back office. And I changed name length from 64 to 128(varchar) But error message show "size over 32" Link to comment Share on other sites More sharing options...
rocky Posted September 25, 2016 Share Posted September 25, 2016 Create override/classes/Supplier.php with the following: <?php class Supplier extends SupplierCore { public function __construct() { SupplierCore::$definition['fields']['name']['size'] = 128; parent::__construct(); } } Remember to go to Advanced Parameters > Performance and then click the "Clear cache" button (or manually delete cache/class_index.php) so PrestaShop can find the override. 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