Magento: How To Create A Dynamic Dropdown List

In this quick tutorial we will learn how to add options in dropdown dynamic in magento, Here we are overriding Customer registration process from admin side. There are following steps to needed to achieve our goals.

Also Checkout other tutorial of Magento,

Step 1: we will edit getAttributes() method for set dynamic source model on /htdocs/demo_magento/app/code/local/MageCustomer/Model/form.php.

”;*/
}
$this->_userAttributes[$attribute->getAttributeCode()] = $attribute;
} else {
$this->_systemAttributes[$attribute->getAttributeCode()] = $attribute;
}

Step 2: we will create new file on htdocs/demo_magento/app/code/local/NsMembership/Model/MemberSourceType.php.