【问题标题】:Display attribute image in category product在分类产品中显示属性图像
【发布时间】:2012-10-16 15:57:27
【问题描述】:

我有这个属性“品牌”的文件显示在产品页面中:

brands.phtml ---- http://pastebin.com/kfiuGTdh adminhtml.xml ---- http://pastebin.com/rFj4KMR4 config.xml ---- http://pastebin.com/ac76KLcT system.xml ---- http://pastebin.com/iGdF14sc data.php ---- http://pastebin.com/Zdg3VZbU v1_brands.xml----http://pastebin.com/6mm3iBdk

此代码用于在产品页面中显示品牌,位于view.phtml中:

<?php echo $this->getChildHtml('product_attributes_placeholder'); ?> 

我想修改它以在每个产品的类别/主页中显示品牌形象,如下所示:

http://postimage.org/image/op26uwz6b/

我尝试了更多选项,但没有任何效果,我现在不知道该怎么做。我希望你明白我想要什么.. 提前谢谢

【问题讨论】:

    标签: image list magento categories


    【解决方案1】:

    您是否确定在 magento 管理员的属性选项中启用了“在产品列表中显示属性”?

    这将确保该属性被加载到列表页面/集合中使用的集合中,否则您将无法使用它:)

    【讨论】:

      猜你喜欢
      • 2020-01-25
      • 2021-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多