当过滤器选项有 0 个产品时,如何隐藏过滤器选项?
我只想展示后面有产品的选项。
这个在Magento管理中:
-
在管理员中,转到
Catalog -> Attributes -> Manage Attributes
。 -
选择在包含 0 个产品的分层导航上显示的属性。
-
更改
Use in Layered Navigation
->Filterable(with results)
.
这应该可以做到。您可能需要刷新/重新索引等等,不确定。