Jump to content

Add new field with own module at Add New Attribute page


Recommended Posts

Hi friends. I was successfully added needed field to database with my module.
 

        //If column 'attribute_group.attribute_description' does not exist, create it
        Db::getInstance(_PS_USE_SQL_SLAVE_)->query('SHOW COLUMNS FROM `'._DB_PREFIX_.'attribute_group` LIKE "attribute_description"');
        if (Db::getInstance()->NumRows() == 0) {
            Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'attribute_group` ADD `attribute_description` TEXT NOT NULL DEFAULT  ""');
        }



Can you help me to show my field with 'displayAttributeGroupForm' hook at my module?
Or maybe I need to use override AdminAttributesGroupsController.php way?

Thank you. Yegor.

Edited by Yegor (see edit history)
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...