How do I combine AND and OR logic with AJAX?
-
Hi,
First off thanks for a great plugin! I have been testing almost all free filters plugins which I stumble upon, and yours is among those few that really stand out.
I have really liked it, and am even considering upgrading to the premium version. However I would like to get this one question down first.
I have set up 4 filters based on product attributes, plus an extra one based on price. I would like to ask if it is possible to combine the OR logic of each individual filter, with AND logic between attribute filters with AJAX.
The end result in user experience that I am after is this: Say I want to be able to pick a couple of Brand attributes with filter A. I would like to have the filters B, C, and D automatically updated reflecting the available quantity of each, based on my selection in A. Currently I am totally able to pick any terms I like from each attribute filter, but it appears like it has no effect whatsoever with the remaining attributes filters. For instance, if I select a brand term with a total of 12 products, then I would expect that the sizes just below that would have at most 12 products each. However the XS size attribute continues to show 36 products, indicating that the brand term I picked did not affect the sizes (or the rest of the attributes filters).
I have experimented with both the OR login and the AND logic, and to be honest I can’t really see any difference in their behavior.
What is it that I have missed?
- The topic ‘How do I combine AND and OR logic with AJAX?’ is closed to new replies.