My objective 1 is to enable dynamic filtering of the searched products when the target price slider is adjusted. (The price range is between the lowest and the highest prices from the search result). So, once a certain price is set, the search results are filtered in the order of prices (the closest price to the target to the top).
The 2nd objective is to enable users to filter the products again by the brands within the filtered by price.
Hi there, @yj.johnrhee… as luck would have it, there was a good example just the other day of filtering a repeating group with a slider… check out this thread.
As far as the brands are concerned, I’m thinking you could add the selected brands to a custom state (list), and then you could have a constraint on the repeating group’s data source (it might need to be an advanced filter) that looks to see if the custom state contains a product’s brand.
Hi @mikeloc. Thanks again. I checked the post you referred to learn it very straightforward. But, still I am having difficulty because I want to use a single point rather than a range and want to display the prices closest to the target price. What is the operator that I need to use for this case?
Hmm, how are you defining closest? I mean, that’s still a range, right? For example, if you want prices that are within, say, 50 cents (either way) of the slider’s value, then you would have two constraints.
I’m not sure what you mean by advanced feature… although, I had mentioned an advanced filter, so maybe that caused some confusion.
Continuing my initial example, I have an option set that defines the brands, and I have a custom state (called brand list) on the repeating group that stores a list of brands as the user clicks the brands. With that setup in place, adding the third constraint below (no advanced filter needed) should do the trick.
I’m not sure what you mean by the brands are dynamically extracted from a repeating group, and I don’t know what that screenshot is meant to show. I assume you are adding constraints to a repeating group of products, and if you have a repeating group of brands that is supposed to constrain the repeating group of products, I think this constraint could work.