Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当有 0 个产品时,如何隐藏过滤器选项?
我只想显示带有产品的选项。
这个在 Magento Admin 中:
在您的管理员中,转到Catalog -> Attributes -> Manage Attributes。
Catalog -> Attributes -> Manage Attributes
选择在包含 0 个产品的分层导航中显示的属性。
更改Use in Layered Navigation-> Filterable(with results)。
Use in Layered Navigation
Filterable(with results)
那应该这样做。您可能需要刷新/重新索引以及所有这些,不确定。