already found something about this task but these snippets where just SQL Querys, is it possible to get the highest attribute id / highest attributeoption id
like, when i create an attribute, its got the attribute_id 11, now i use that tool without having created any attribute with it yet –> just read all available attributes, not write, how do i get the value “11” for example with the Magento API without query’ing the mysql database?
to be more specific:
what i want to do is to iterate though all existing attributes getting all attribute_ids, attribute_names for output
same for all attribute options of one attribute
didn’t found anything usable, maybe I’ve been looking at the wrong place on the Internet. Hope someone could help me.
Attributes in Magento are represented by the model ‘eav/entity_attribute’. The following code shows how to access them. Hope it’s what you were looking for.
Some other neat things you can do with attributes:
See app/code/core/Mage/Eav/Model/Entity/Attribute.php, app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php