Magento Product Attribute Get Value

后端 未结 13 1606
暗喜
暗喜 2020-12-02 05:32

How to get specific product attribute value if i know product ID without loading whole product?

13条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 06:12

    First we must ensure that the desired attribute is loaded, and then output it. Use this:

    $product = Mage::getModel('catalog/product')->load('', array(''));
    $attributeValue = $product->getResource()->getAttribute('')->getFrontend()->getValue($product);
    

提交回复
热议问题