Skip to content

Instantly share code, notes, and snippets.

@joshbrw
Created February 1, 2016 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshbrw/1fd19264d98418b3bb0f to your computer and use it in GitHub Desktop.
Save joshbrw/1fd19264d98418b3bb0f to your computer and use it in GitHub Desktop.
<?php
$installer = $this;
$installer->startSetup();
$this->addAttribute('customer_address', 'reid', [
'type' => 'varchar',
'backend' => '',
'label' => 'REID',
'input' => 'text',
'source' => '',
'visible' => true,
'required' => false,
'default' => '',
'frontend' => '',
'unique' => false,
]);
Mage::getSingleton('eav/config')
->getAttribute('customer_address', 'govt_id')
->setData('used_in_forms', array('customer_register_address','customer_address_edit','adminhtml_customer_address'))
->save();
$installer->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment