首页 > 其他 > 详细

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

时间:2014-11-04 15:10:52      阅读:288      评论:0      收藏:0      [点我收藏+]

<div class="product-sku">SKU:<?php echo $_product->getSku();?>

            &nbsp;&nbsp; Brand:<?php 

            $attributes = $_product->getAttributes();  

        echo  $attributes[‘brand‘]->getFrontend()->getValue($_product);  

            ?>

            &nbsp;&nbsp; UNIT:<?php echo $_product->getUnit();?>

            </div>


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

原文:http://jyb2014.blog.51cto.com/9155315/1571690

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!