Forums Forums Search & Filter Pro Sliders over a range of values

Tagged: , ,

Viewing 10 posts - 1 through 10 (of 34 total)
  • Anonymous
    #75322

    Hi

    I have a min and max value (from ACF) for an item. An analogous example would be minimum and maximum prices (Max. and Min.).

    What I want from my slider is for it to return any post wherein either Max. OR Min. is within the slider range. At the moment I’m having to set up two sliders, one for Max. and one for Min.

    For example, if the Max. in some product range X is $100 and the Min. is $10, when the slider covers either $1-$11 or $99-$1 000 000 (or infinity, whatever) for that product to be returned.

    How do I achieve this?

    Trevor
    #75327

    I cannot see a way to achieve this, so I may have to refer it to the developer. What if you made an extra multi-value field and put both values in that, in addition to the min and max fields? Extra work I know …

    Anonymous
    #75329

    Sorry, I’m fairly new to the plugin.

    What do you mean by extra multi-value field?

    From a UX perspective I’d really like to avoid multiplying my sliders. I already have two sets of min/max values, which means four sliders at the minutes. While I can cope (barely) with that outcome, it means that I’m double space restricted.

    Thanks for the support. I hope I can continue to receive help with this.

    Trevor
    #75331

    In your ACF Fields Group, you currently have the 2 fields; Min and Max. Add a third field called MinMax and in the ACF setup allow it to have multiple values. so, let’s say your post has a Min of 100 and a max of 400. You would have three field in the post:

    Min = 100
    Max = 400
    MinMax = 100 & 400

    Set the slider to search on that last one. If the range matches either value, it will count as a hit. I think.

    Anonymous
    #75335

    What type of field in the ACF set-up is allowed multiple values? You’re not suggesting a checkbox, are you? I need to avoid my user having to make any direct edits of the fields, so changing options there isn’t possible.

    Thanks for the support.

    Trevor
    #75337

    Ah, Only a dropdown or similar. No good for you. OK. I will have to refer this to Ross, the developer. He is traveling right now, so it might be Monday before he can answer.

    Anonymous
    #75344

    Monday is fine. I ship end of next week, so please before then. The setup is fine, I just need the sliders to operate as required.

    Thanks again for the support.

    Trevor
    #75347

    OK. I cannot promise anything though, but Ross is more likely to know IF it is possible and if so, how.

    Anonymous
    #75349

    It must be possible. It’s a change of the return test.

    It’s also a really clear search necessity – it should be shipped with the product to begin with.

    I might be getting my set-up wrong, of course, but I really think this should be answerable without massive trouble.

    Perfectly fine with altering the search query as needed but I don’t have the time to go digging into the plugin and figuring out how it’s enacted – but the dev should know.

    Anyway, I appreciate the help and anticipate a clear response from Ross.

    Thanks again for the helpfulness so far.

    Ross Moderator
    #75729

    Hi Saul

    I’ve read the above and it seems like its something we already offer.

    Are you just saying you would like min to be defined by one meta key, and the max by another?

    Then I would have though you just need to untick “use same for end key” and choose the correct key?

    Let me know if I missed something.

    Thanks

Viewing 10 posts - 1 through 10 (of 34 total)