【问题标题】:Magento - Print category attribute on category page?Magento - 在类别页面上打印类别属性?
【发布时间】: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


    【解决方案1】:

    尝试在管理员中重新索引

    在管理 -> 系统 -> 索引管理中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多