cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Groups and Custom Group Attributes

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

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.

2 REPLIES 2

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

Re: Customer Groups and Custom Group Attributes

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.