我想将制造商名称添加到类别列表中。发现这个线程,http://www.magentocommerce.com/boards/viewthread/1610/P15/#t42109,但我不能让它工作。将制造商名称添加到类别列表
在我已经加入
<action method="addAttribute"><attribute>manufacturer</attribute></action>
所述的catalog.xml后
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
在两个部分
<catalog_category_default translate="label">
和
<catalog_category_layered translate="label">
在我list.phtml我试图
echo $_product->getAttributeText('manufacturer');
这给了一个空的结果 和
echo $_product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($_product);
这给结果 “否”
I'm运行版本1.5.1.0
如果我使用print_r($ _ product)转储产品;在清单中,不应该使用catalog.xml中的
user978341