I have created a custom tab in admin which I need to manage customer attributes.
I would like to load all customer attributes in that section and keep a check box against each attribute.
Such that when ever a check box is checked or unchecked, based on the selection, the columns will be displayed/hidden in Manage Customer Grid.
I would like to know how do I get to display all customer attributes in that section with a checkbox each?
You can use
getAttributes()which returns an array ofMage_Eav_Model_Entity_Attribute.Much improved technique for config:
First we need to create a source model in your module, in the following you obviously have to rename it to match your actual module.
Then we need a single new field in your module’s system.xml.
This works surprisingly well, surprising because these classes are not used in the core. Instead of
checkboxesthe type can also beradios, that works too.