作者:马仔盛世焚花 | 来源:互联网 | 2023-08-16 17:26
篇首语:本文由编程笔记#小编为大家整理,主要介绍了Magento 2 Amasty分层导航。删除当前应用的过滤器的显示相关的知识,希望对你有一定的参考价值。
我试图删除显示所有当前应用过滤器的块。请看下面的图片。这是通过编辑布局文件还是通过管理面板中的选项完成的?如果是这样我怎么做?
![enter image description here](https://img6.php1.cn/3cdc5/c45f/1c8/2d9952d955aee88f.png)
答案
可以从布局中删除当前过滤器块
app/code/Amasty/Shopby/view/frontend/layout/catalog_category_view_type_layered.xml
或者通过模板文件:
app/code/Amasty/Shopby/view/frontend/templates/layer/state.phtml