Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Magento: Efficiently get a single product attribute from product id
<?php
$attribute_value = Mage::getResourceSingleton('catalog/product')->getAttributeRawValue($productId, 'attribute_code', Mage::app()->getStore());
echo $attribute_value;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment