Magento list of catalog product attributes and attributeset.
Magento list of catalog product attributes and attributeset.

Sometimes if you want some specific attribute and do some code based on that attribute then below code will give the exact solution for catalog product.So here I am going to show you How we can fetch all Magento list of catalog product attributes and attributeset .I mean I am going to show you how to fetch all attribute codes and name and with all attributes sets having name and Id.Generally this situations happens when we will try to add an attributes in catalog product section and that is not showing in our attribute section then we want to check th database section.But I you will be getting all by code then no need to go data base section

Also If you would like to check all attribute sets for a particular product then its better to check below code.And for getting all attribute sets store in entity attribute table then we can fetch by a simple way.All coding I have just done through custom script by means you can place your custom script inside root directory of your magento installation folder then run with magento base URL. So.So then after you will betting your all requirements.

custom script:

[crayon-5e455fbdbe432497559607/]
In the above example I have set the code to find out all attributes and attribute set details.So if we categories them individually then I can guess you will be understood better.

So below details are individual parts:

Attribute set:

[crayon-5e455fbdbe43c797064067/]

[crayon-5e455fbdbe441703569174/]

All attributes:

[crayon-5e455fbdbe446652985314/]
In all above parts I have set entityType to filter from database.like to fetch data details from table eav_entity_attribute table with filterable data for which entity type we want get data.

Magento list of catalog product attributes and attributeset
The following two tabs change content below.
Jyotiranjan is one of passionate programmer who has been working in magento since 6 years and in the mean time he has developed enormous amount of modules and customisation of sites. He loves to write blogs and travel for long journeying.

Latest posts by Jyotiranjan Biswal (see all)

Tagged on:                     

Leave a Reply

Your email address will not be published. Required fields are marked *