【问题标题】:Display subcategories of main category in sidebar in magento在magento的侧边栏中显示主要类别的子类别
【发布时间】:2015-05-21 12:30:42
【问题描述】:

我有一些categories 和他们的subcategories 如下:

Mobile
    Nokia
    Samsung
    Micromax
Television
    LG
    Panasonic
    Philips
Laptop
    Acer
    Dell

当我点击categoryMobile时,在right side bar所有categories and subcategories are displayed。但我只需要显示Mobilesubcategories。仅诺基亚、三星、Micromax

我该如何管理?哪个文件处理这个操作?我也找不到需要的文件。

请帮帮我...我的 ma​​gento 版本是 1.9.0.1

编辑

在类别的display settings 中,我将Is anchor 设置为YES,然后在right side bar all categories are displayed 中。如果我设置 NO the subcategories only displayed in left side barI need right side bar because it contain some filter options too.

【问题讨论】:

    标签: php magento categories


    【解决方案1】:

    您可以使用以下扩展程序,它是免费的。

    http://www.manadev.com/advanced-layered-navigation-ce

    您可以从他们的网站查看演示。

    【讨论】:

      【解决方案2】:

      在类别设置中,将类别“移动”设置为锚类别。这将把客户锁定在移动设备的购物体验中。

      【讨论】:

      • 在类别的显示设置中,我将锚定为 YES,然后在右侧栏中显示所有类别。如果我设置为 NO,则子类别仅显示在左侧栏中。我需要右侧栏,因为它也包含一些过滤器选项。
      【解决方案3】:

      问题解决了……

      我在这里使用的是layered navigation

      要显示layered navigation 我所做的是:在Catalog > Manage Categories > (Category name) > Display settings 中将Is Anchor 更改为Yes

      那么,

      app\design\frontend[template][template]\layout\catalog.xml分类分层导航布局部分,

      我变了

      <block type="catalog/navigation" name="catalog.leftnav1" before="currency" template="catalog/navigation/left_nav.phtml"/>
      

      <block type="catalog/navigation" name="catalog.leftnav1" before="currency" template="catalog/navigation/left.phtml"/>
      

      现在它可以正常工作了......

      【讨论】:

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