Retrieve Attribute Sets Collection by Entity Type

In Magento we can have several attribute sets based on different entity types. In this post we will have a look on have to retrieve programmatically all attribute set for a specific entity type.

The EAV entity types are stored in the eav_entity_type table as can be seen below. Where information like the attribute model, the default attribute set, the entity table and more can be found.

Furthermore in the table eav_attribute_set we can see all attribute set available for every entity type.

Below there is an example of how you can retrieve all attributes set for a specific entity type (product). As is well known, one entity type can have more than one attribute set.

Feel free to share this post and ask your questions in the comments below.

Till next time!

DigitalOcean Referral Badge