Jump to content

Is it possible to increase the length of supplier name?


Martin Y

Recommended Posts

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 by Martin Y (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...