Reputation: 43
Assuming we have e-shop working on opencart and a category "Mobile Phones". Trying to set filter module up like this
-Touch screen
-Yes
-No
-Smartphone
-Yes
-No
While choosing a single option from the list it works fine , but if I want to choose smartphones list with touch screen (choosing both "yes" options), module messes all up , and shows all phones. Any ideas how to fix this ?
P.S. I know it will be better to use attributes for this options and use some attribute search extension , but in my case I need to do this way.
Thanks
Upvotes: 1
Views: 3778
Reputation: 54
This extension solves it. http://www.opencart.com/index.php?route=extension/extension/info&extension_id=11707
It uses 'or' logic for the attributes of each filter and 'and' logic between filters. I put it on opencart 1.5.6 and it seems to be working just fine.
EDIT: It appears this extension doesn't exist anymore. Also, this comment was written based on opencart 1.5.6 while the current version is 3.0.0.
Upvotes: 2
Reputation: 4365
This extension should work:
FixFilter OC2x - fixes default Opencart filter
https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=23603
If you don't want to use extensions and know about sql queries, you can study the code of various such extension and make the necessary changes in queries in product.php model.
Upvotes: 0
Reputation: 1
I also have the same issue, where all the products are just being listed. I believe it could be due to the fact that the filter and the shopbyprice could be conflicting. Please let us know if you find a fix
Upvotes: 0