【发布时间】:2013-03-05 11:16:41
【问题描述】:
我按照以下教程将自定义属性添加到我的 Magento 类别: http://www.atwix.com/magento/add-category-attribute/
它似乎已经在后台显示文本字段,我可以看到数据库中的属性(eav_attribute)。
问题是我无法在前端显示属性。我已将教程中建议的代码添加到 view.phtml 中,但它不起作用。
我也试过
if($_category->getCustomAttribute()) {
echo $_category->getCustomAttribute();
}
有什么想法让它在 Magento 1.7 中显示?
【问题讨论】:
标签: magento