I’ve searched the documentation but couldn’t find anything definitive on it.
As far as I understand, when you filter by two tags, it’s always an AND condition (as in, the both tags need to be present on the product) but my client is adamant that they want it to operate as an OR condition (as in, either of the tags can be present).
Is this possible with Storefront filtering on the collection page? And if so, how is it done?
Though it’s not incredibly explicit (like many things in the docs) it does state:
Tag filtering uses the AND operator
This would lead me to believe that tag filtering is only possible with ‘AND’ logic and not with ‘OR’ logic.
1 Like
Thought so. Client is adamant they want OR though. They contacted their rep and he said the same thing. I’m now working on a custom solution for them.
@christhefreelancer are they adamant about going native? Many collection + search applications (Boost PFS comes to mind) do this sort of thing out of the box.
No but they are also adamant about a custom design and the previous app we were using was incredibly hard to customise to our needs (hence the native solution)
@christhefreelancer I would look into Boost PFS, it’s highly customizable, we’ve used it for many clients. Their customer support staff is wonderful as well!
You need try the search api where you need a collection handle with perfix as a tag than other tags like black or red etc
on click create a query , get response from search page and append the html to collection container.
Note : sorting will not work after start filtering the product so you need to hide the sorting options. also if there any promo banner or other custom thing in between the products cards will not work.
Thanks