duandi8838 2011-12-15 18:24
浏览 38

产品列表视图中不显示自定义属性Magento

I am attempting to display certain custom attributes on our product list page. To do this I have followed the instructions on the Magento Commerce forum and have tested this method to work. I can't post a link since I am only allowed to post two links as a new user.

We are using a custom template. So I added the folder structure “/app/design/frontend/yardandpool/yap/template/catalog/product” and then uploaded the new “list.phtml” file to the product folder. Then, under “Custom Design” in the admin section for the category I have the custom template folder selected.

The attribute I am trying to display is a “Key #” for the particular product. It should display above the product name. As you can see here, it does not…

http://50.23.233.222/~yardandp/index.php/swimming-pool-supplies-accessories/swimming-pool-parts/test-parts1.html

But, then I created a custom template folder to the “base” folder. I created “/app/design/frontend/base/yardandpool/template/catalog/product” and put the same “list.phtml” file in the product folder. I then created a second test category and selected this folder for the “Custom Design” in the admin section. Obviously, the layout is not correct, but if you scroll down to where the product is located you will see the custom attribute “Key #” is displayed.

http://50.23.233.222/~yardandp/index.php/swimming-pool-supplies-accessories/swimming-pool-parts/test-parts2.html

What would be the reason it would be displayed here but not on both category pages? I can’t seem to find out what the problem is.

  • 写回答

2条回答 默认 最新

  • dpwu16132 2011-12-15 19:28
    关注

    Attributes have an option "Used in Product Listing (Depends on design theme)" that needs to be checked to be, err, used in product lists.

    The reason for this feature is products have many attributes that aren't needed on category pages and so are left unloaded to save time.

    评论

报告相同问题?

悬赏问题

  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?