[英]How to add an attribute value to magento grid or list product view
I have an attribute that currently is appeared into the product page. 我有一个当前显示在产品页面中的属性。
How can i add it to product grid and list view in categories? 如何将其添加到产品网格和类别列表视图中?
How can i add it to widgets grid view too? 如何将其也添加到小部件网格视图? (such as latest products etc)
(例如最新产品等)
Magento version is 1.8.1.0 Magento版本是1.8.1.0
First, make sure the attribute is add to the product flat table in Catalog > Attributes > Manage Attributes
. 首先,确保在
Catalog > Attributes > Manage Attributes
将该属性添加到产品平面表中。 See https://magento.stackexchange.com/questions/5519/missing-attributes-on-product-list 参见https://magento.stackexchange.com/questions/5519/missing-attributes-on-product-list
Then modify your phtml accordingly 然后相应地修改您的phtml
/app/design/frontend/default/[theme]/template/catalog/product/list.phtml
/app/design/frontend/default/[theme]/template/catalog/product/list.phtml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.