cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Groups and Custom Group Attributes

Customer Groups and Custom Group Attributes

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.

1 REPLY

Re: Customer Groups and Custom Group Attributes

$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();