I am working on a custom magento extension.
I've made a selection menu with all customer groups, here is the code of it:
$CustomerGroups = Mage::getResourceModel('customer/group_collection')->toOptionArray(); $CustomerGroups = array_merge(array('' => ''), $CustomerGroups); $fieldset->addField('customergroups', 'select', array( 'name' => 'customergroups', 'label' => Mage::helper('smsnotification')->__('User Group'), 'class' => 'required-entry', 'values' => $CustomerGroups ) );
Here is the result:
As you can see the results are like this:
- not logged in
What i want is simply to add the number of members in every customer group, for example
General - (125 members).
Let me give you an example of what i want to achieve but don't know how in image: