Shows how to filter a database collection using option groups each with multiple options. This type of filter is often used in online stores. The filter uses the .hasSome() function, which checks if a database collection field contains any of the selected values from each option group.
Can a partial filter be setup with this? For example, if I entered âIndoor or Outdoorâ in the lighting requirements database field, could this filter retrieve the item if someone selected âindoorâ or âoutdoorâ from the selections. Basically, Iâm trying to avoid having to have a third choice, and just retrieve items based on a partial match.
Would you tell me how to set this up if I wanted to show all the flowers when the flower checkbox was checked AND then the âAfrican Violetsâ required both âindoorâ and âoutdoorâ light?
@yisrael-wix Thanks for response, really appreciate!
I would like to filter price range and add sort function like Store, pls check attached photo and advise, thanks a lot
@tungoslo8 We are unable to provide full code solutions. Wix provides many resources to help users learn how to get the most out of Corvid. We encourage users to take advantage of these resources which include video tutorials, full app examples (which can be loaded into the userâs editor), API documentation, and a wealth of articles describing a wide range of topics - from beginner to advance.
You may want to check out the WixArena - itâs a hub where you can look for Corvid (and other) experts for hire.
@yisrael-wix - Thanks for your support. I could use some help with the 2 following questions please:
Any way to add a total count (as label) next to each group option, which would dynamically change based on the filtering? if possible, could you happily create an example?
If an optionâs count is 0, anyway to disable the option so it canât be selectable?