如何在opencart 2.0.1.1中使用组合过滤器?

How to use combined filters in opencart 2.0.1.1?

我 运行 遇到了 Opencart 2.0.1.1 中标准过滤器的问题。我想用多个过滤器筛选产品,以便缩小产品范围。

我找到了解决方案,但那个是 Opencart 1.5

我知道有几个过滤器扩展可以执行此操作,但我为什么要购买另一个扩展?这需要成为 imo 的默认功能。

我有 PHP 的知识,所以我可以自己编辑 models/templates,我现在只需要知道要编辑什么。

对于正在寻找相同问题的人,我终于找到了这个惊人的扩展,它在 sql 查询中添加了缺失的 "AND"。

http://www.opencart.com/index.php?route=extension/extension/info&extension_id=23603

The default filters in Opencart uses logic "OR" for all values, regardless of the filter group.

FixFilter OC2x modifies the default Opencart 2.0 filters to filter products with "OR" (products in group) and "AND" (for GROUPS) logic.

Designed for Opencart version 2.0.0.0 - 2.0.3.1 This fix is not necessary if you use a third-party filter (such as FilterPro etc)

Install Upload file fix_filter.ocmod.xml in Extension Installer Don`t forget refresh modification cache after install!