As a result of the EAV data structure in Magento, the options of a select or multiselect attribute are stored and retrieved by id. This poses a challenge when getting the attribute in that calling getAttName() or getData('att_name')on an object (product, customer, etc.) will return the id instead of the text value that may be expected. This is easily addressed by Magento with the method getAttributeText('att_name') which will return the text string.

Note: In the methods mentioned above “AttName” and “att_name” would be replaced by the attribute name. …

Kevin DeBernardi

Evolving editorial and interactive

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store