您的位置:首页 > 产品设计 > UI/UE

magento如何获取产品属性值 How to Obtain Custom Attribute Values in Magento

2014-11-04 14:41 399 查看
<div class="product-sku">SKU:<?php echo $_product->getSku();?>
   Brand:<?php
$attributes = $_product->getAttributes();
echo $attributes['brand']->getFrontend()->getValue($_product);
?>
   UNIT:<?php echo $_product->getUnit();?>
</div>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐