Magento分层导航 - 隐藏子子类别

时间:2014-06-29 15:03:40

标签: php magento layered-navigation

我目前正在为客户开发一个网站,但我遇到了一些障碍。

我们正在使用FME分层导航,它目前同时显示sub&父类别的子子类别。

我们想要的只是显示子类别,然后点击后显示子子类别。

e.g:

Root
  Cat1
    SubCat1
      SubSubCat1   /* Hide until SubCat1 is clicked */
      SubSubCat2   /* Hide until SubCat1 is clicked */
      SubSubCat3   /* Hide until SubCat1 is clicked */
    SubCat2  
      SubSubCat1   /* Hide until SubCat2 is clicked */
      SubSubCat2   /* Hide until SubCat2 is clicked */
      SubSubCat3   /* Hide until SubCat2 is clicked */
    SubCat3
      SubSubCat1   /* Hide until SubCat3 is clicked */
      SubsubCat2   /* Hide until SubCat3 is clicked */
      SubSubCat3   /* Hide until SubCat3 is clicked */

如果有人能指出我正确的方向吗?我查看了/ app / code / local / FME .phtml文件,但我看不到任何决定要显示的类别级别的内容。

2 个答案:

答案 0 :(得分:1)

使用此XML定义更新app / design / default / THEMENAME / layout / catalog.xml中的catalog.xml,以从Magento的左层导航中删除类别过滤器。

<reference name="catalog.leftnav">
<action method="unsetChild"><alias>category_filter</alias></action>

答案 1 :(得分:0)

请转到

System >> Configurations >> Developer

然后从左上角的Current Configuration Scope下拉列表中选择相应的商店视图。然后在Debug标签下,启用Template Paht hintsAdd Block Names to Hints并保存。现在重新加载显示导航的前端。您会找到使用的正确.phtmlblock名称。

相关问题