Is there a way to programmatically or with a module, add additional fields to customer groups?
We'd like to add company address information to each group.
$installer = $this; $connection = $installer->getConnection(); $installer->startSetup(); $installer->getConnection() ->addColumn($installer->getTable('customer/customer_group'), 'your_custom_column_name_1', array( 'type' => Varien_Db_Ddl_Table::TYPE_TIMESTAMP, 'nullable' => true, 'default' => null, 'comment' => 'Your comment 1' ))->addColumn('your_custom_column_name_2', Varien_Db_Ddl_Table::TYPE_TEXT, 32, array( 'nullable' => false, ), 'Your comment 2'); $installer->endSetup();
Hi,
I've included a video here: https://www.youtube.com/watch?v=OyRImQWmNyk
Concerning How to Create a Customer Group in Magento. It might be useful.