Jump to content

Add new field with own module at Add New Attribute page


Recommended Posts

Hi dear. I am processing create an own prestashop 1.7 module. I want to add one new custom field at Add New Attribute page with module. Without changes at core files. Can you help me please. I can't find needed hook for adding my field. Screenshot with add attribute page and field that I want to add http://prntscr.com/i39x3r. Thank you.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More