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>
Brand:<?php
$attributes = $_product->getAttributes();
echo $attributes['brand']->getFrontend()->getValue($_product);
?>
UNIT:<?php echo $_product->getUnit();?>
</div>
相关文章推荐
- magento如何获取产品属性值 How to Obtain Custom Attribute Values in Magento
- Magento how to remove system attribute?(如何移除系统属性)
- 如何用th:attr标签在thymeleaf模板中设置属性-原标题:How To Set Attributes in Thymeleaf Template using th:attr?
- How to embed Google Custom Search Engine in Magento
- How to get the size of file in C++ - 在C++中如何获取文件的大小
- How to Programmatically Add/Delete Custom Options in Magento? - See more at: http://apptha.com/blog/
- 如何获取BootStrap Modal中按钮的值,How to catch value from buttons in BootStrap Modal
- How to add custom fields to Customer Registration and Account page in magento
- How to get Hidden Column Value in GridView(ASP.net GridView如何获取隐藏列的值)
- 如何使用th:each属性迭代模板-原标题:How To Use th:each For Iteration In Thymeleaf Template?
- How to know whether the attribute belongs to one types of productin Magento?
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- [转]how to programatically access built-in properties of open xml word doc(如何读取open xml格式文档属性)
- Magento 获取当前货币和货币符How to get current currency in Magento
- How to get MetaData on client side in WCF?如何在客户端获取WCF service的元数据
- How to change a product dropdown attribute to a multiselect in Magento
- How to create custom price in Magento?
- How to Programmatically Add/Delete Custom Options in Magento? - See more at: http://apptha.com/blog/
- How to obtain access to an ActiveX control from its property page 如何从一个控件的属性页中获取对该控件的访问?
- 【原创】如何在DataFormWebPart中嵌入自定义控件[How to embeded custom control in DFWP]