Monday, 12 September 2016

Rearrange form fields in the Magento admin panel?

Rearrange form fields in the Magento admin panel?

Some time it require to Rearrange form custom fields in the Magento. This can be achieve while running the custom script as below. Considering we are doing this for customer address field.


$this->addAttribute('customer_address', 'your_custom_field', array(
'type' => 'varchar',
'input' => 'text',
'label' => 'your_custom_field',
'global' => 1,
'visible' => 1,
'required' => 0,
'user_defined' => 0,
'visible_on_front' => 1,
'position' => 60 ));

Note: Recommended, Please keep database back-up while running the scripts.

Please leave your comments, if you find this post is useful.

1 comment: