【问题标题】:Magento 2 Amasty Layered Navigation. Remove display of current applied filtersMagento 2 Amasty 分层导航。删除当前应用过滤器的显示
【发布时间】:2018-10-17 11:55:26
【问题描述】:

我正在尝试删除显示所有当前应用的过滤器的块。请看下图。这是通过编辑布局文件还是通过管理面板中的选项来完成的?如果有,我该怎么做?

【问题讨论】:

    标签: magento magento2 magento2.2 layered-navigation amasty


    【解决方案1】:

    当前过滤器块可以从布局中删除

    app/code/Amasty/Shopby/view/frontend/layout/catalog_category_view_type_layered.xml
    

    或者通过模板文件:

     app/code/Amasty/Shopby/view/frontend/templates/layer/state.phtml
    

    【讨论】:

    • 小心删除布局文件中的状态块会导致问题,因为它被其父块使用 => $this->getChildBlock('state')->getClearUrl();
    猜你喜欢
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多