Created
December 3, 2013 16:21
-
-
Save davidalexander/7772193 to your computer and use it in GitHub Desktop.
Magento: Efficiently get a single product attribute from product id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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