Jump to content

Increasing Tag Size


carbar

Recommended Posts

Please create new file in location:  ./override/classes/Tag.php

Put there this code. 

<?php

class Tag extends TagCore {
    public static $definition = array(
        'table' => 'tag',
        'primary' => 'id_tag',
        'fields' => array(
            'id_lang' =>    array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
            'name' =>        array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 50),
        ),
    );
}

Next remove file if exist: ./cache/class_index.php

And after refreshing your website - it should work as you wish :)

Edited by SirPresta (see edit history)
Link to comment
Share on other sites

  • 10 months later...
  • 2 months later...

Please create new file in location:  ./override/classes/Tag.php

Put there this code. 

<?php

class Tag extends TagCore {
    public static $definition = array(
        'table' => 'tag',
        'primary' => 'id_tag',
        'fields' => array(
            'id_lang' =>    array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
            'name' =>        array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 50),
        ),
    );
}

Next remove file if exist: ./cache/class_index.php

 

And after refreshing your website - it should work as you wish :)

Hello, I have the same problem and I already increased the name column on ps_tag to 255 and the prestashop dont assume this changes on BO product page.

I already added this changes to classes, I mean I already created a Tag.php and nothing...there is other away to fix this?

Thanks

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...