Magento – Get Product Attribute Value for Dropdown Without Loading the Whole Product

attributesdropdown-attribute

Been using this snippet to retrieve the attribute values but this only works for input type text or boolean but not for dropdown type of attributes:

$_resource = Mage::getResourceSingleton('catalog/product');
$_resource->getAttributeRawValue($_productId, 'color', Mage::app()->getStore());

For the select dropdown type, it returns bool(false) and I am expecting it would return the dropdown frontend value/label.

How can I get the attribute value of a product without loading the whole product model?

Thank you.

Best Answer

Another option for getting dropdown attribute value :

$_product->getAttributeText('contrast_ratio');

getAttributeText method is use for retrieving the SELECT, MULTISELECT, DROPDOWN or YES/NO attributes value.