Hi, everyone!
I have a question about product tag filtering. I’ve seen previous questions from a few years ago, but I wanted to see if there was a more recent answer. I want to include product filtering by tags on my collection page, but I want the tag logic to use OR instead of AND. Is there a way to achieve this using Liquid and if not, is there a jQuery / Javascript alternative that I would be able to utilize?
Just to give an example for my filtering needs. Let’s say I have a general collection page of “Men’s” and they want to filter “Jackets” and “Pants”. Currently if I attempt to filter, it’ll search for products that have both tags “Jackets” and “Pants”, which obviously no available products would show. Instead, I want it to filter any products that have either “Jackets” or “Pants” in tandem.
Let me know if you have any available solutions!
Thanks,
Travis