startSetup(); $setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $entityTypeId = $setup->getEntityTypeId('customer'); $attributeSetId = $setup->getDefaultAttributeSetId($entityTypeId); $attributeGroupId = $setup->getDefaultAttributeGroupId($entityTypeId, $attributeSetId); $setup->addAttribute('customer', 'ean_no', array( 'input' => 'text', //or select or whatever you like 'type' => 'varchar', //or varchar or anything you want it 'label' => 'EAN No.', 'visible' => 1, 'required' => 0, //mandatory? then 1 'user_defined' => 1, 'visible_on_front' => 1 )); $setup->addAttributeToGroup( $entityTypeId, $attributeSetId, $attributeGroupId, 'ean_no', '100' ); $oAttribute = Mage::getSingleton('eav/config')->getAttribute('customer', 'ean_no'); $oAttribute->setData('used_in_forms', array('adminhtml_customer', 'customer_account_create', 'customer_account_edit', 'checkout_register')); $oAttribute->save(); $setup->endSetup();