我想將製造商名稱添加到類別列表中。發現這個線程,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