0

Magento comes with the 'Default' group, but it is possible to create new groups based in attributes of 'Default' group.

I need get the names of the groups existing.

Example:

I have 3 groups, 'Default', 'Test', 'Test2' both have the
same tabs and attributes of 'Default'.

I want to generate a loop that returns me the three names, 'Default', 'Test', 'Test2' and not your tabs and attributes

I am creating a new attribute in my module, and precisso it to appear in all groups, so far only got on 'Default', because not got successful in getting the names of the groups.

1 Answer 1

2

The collection you are looking for is

Mage::getModel('eav/entity_attribute_group')

and with that in mind you can iterate through the collection items and get the info you need as in any other collection.

4
  • Thus returns 'General'
    – Dexxtz
    Nov 27, 2014 at 13:42
  • IT is correct if you have only one group.
    – mbalparda
    Nov 27, 2014 at 13:43
  • Thus it's like to return only the tabs by group
    – Dexxtz
    Nov 27, 2014 at 13:45
  • Please be clearer since this is the collection you are looking for if you need to see the attribute groups present in Magento.
    – mbalparda
    Nov 27, 2014 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.