How to get Dropdown Attributes Magento

Get the Dropdown Attribute value in catalog list.

We saw How to get Attributes wich worked fine for text attributes.

Now if you want to get the dropdown attribute value:

<?php echo $_product->getAttributeText('attribute_name'); ?>Code language: HTML, XML (xml)


  1. Works great in Magento 1.9…thanks!

  2. pratik says:

    How to loop custom field attribute for dropdown.

  3. krpret says:

    doesn’t work!

    1. Rick says:

      Odd. Maybe they changed the way it works in the newer Magento versions. What version are you using?

Leave a Reply

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