如何向magento网格或列表产品视图添加属性值


How to add an attribute value to magento grid or list product view

我有一个当前出现在产品页面中的属性。

如何将其添加到产品网格和列表视图中的类别?

我怎么能把它添加到小部件网格视图?(如最新产品等)

Magento版本为1.8.1.0

首先,确保将属性添加到Catalog > Attributes > Manage Attributes中的产品平面表中。见https://magento.stackexchange.com/questions/5519/missing-attributes-on-product-list

然后相应地修改php

/app/设计/前端/违约/(主题)/模板/目录/产品/list.phtml