Hello !
I’ve struggling for several days on this issue and no-one seems to know how to solve this “obvious look issue”.
Here is the context:
I’m building classified website and trying to give the users the possibility to search / filter with many criteria, and to display the results in a repeating group.
I got 6 categories (dropdown and checkbox) and each can have between 2 and 16 options.
What I want:
Nothing is checked, all the ads appear.
One option in a category is checked: matching ads appear
Two options from the same category are checked: all ads who got either AND both options appear.
Many options from different categories are checked: all ads who got either AND both options appear.
What I got now:
- For each category I custom a state (list of text)
- The result R.G.: “Do a search for adds” / filtered [advanced: state’s category intersect with the ads category:count >0".
=> It works with one category
If I do this for all categories with an “intersect” function in between, it works only if options are checked in every category (which is really not interesting).
Let’s say I sell cloths
Database:
Product (type=tshirt (text))
Size: 1, 2 3 (text)
Colors: black, white (text)
If I check “white” => appear: “white t-shirt” and “black & white t-shirt”
If I check “black” and “white” => appear: “white t-shirt” ; “black t-shirt” ; “black and white t-shirt”
If I check “black” and “size 2” => appear: “black t-shirt size 2” ; “black and white t-shirt size 2”
If I check “size 2” => appear: all size 2 t-shirt whaeveter the color
:///// Thx so much to one who could get me out of there hehe