Magento中获取特定属性值

<?php echo $_product->getResource()->getAttribute('attr')->getFrontend()->getValue($_product); ?>
//or
<?php echo $_product->getAttributeText('attr');  //string or array ?>
原文地址:https://www.cnblogs.com/liuxgnu/p/3535104.html