Magento的产品属性获得值 [英] Magento Product Attribute Get Value

查看:135
本文介绍了Magento的产品属性获得值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我知道的产品ID,而无需加载整个产品如何获得特定产品的属性值?


解决方案

 法师:: getResourceModel('目录/产品') -  GT; getAttributeRawValue($的productId,'attribute_ code',$ STOREID);

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

解决方案

Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'attribute_code', $storeId);

这篇关于Magento的产品属性获得值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆