Magento中获取特定属性值

<?php echo $_product->getResource()->getAttribute('attr')->getFrontend()->getValue($_product); ?>
//or
<?php echo $_product->getAttributeText('attr');  //string or array ?>

 

posted @ 2014-01-27 17:39  狂热的猴子  阅读(199)  评论(0编辑  收藏  举报