Kul Posted November 13, 2023 Share Posted November 13, 2023 Dear community, I set up a "feature" with 3 attributes (A, B, C) used by 3 products (1, 2, 3): Product 1 with attributes A and B, Product 2 with attributes A and C, Product 3 with attributes B and C. In order to choose more than one attribute there is only the checkbox option available as filter in Faceted Search. If attributes A and B are marked, then all products appear, because the filter is looking for products with attribute A OR B, but I want the filter looks for products with attributes A AND B, so only product 1 should appear. Is there a solution? Thank you in advance. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted February 6, 2024 Share Posted February 6, 2024 Hi, You can create an override for the ProductController class to modify the way filters are applied. Look for the method responsible for handling attribute filtering. If you are using a faceted search module, you might need to customize it to implement the AND logic for attribute filtering. Check the documentation of the faceted search module you are using, and look for customization options. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now