Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Slider price range functionality with min and max ranges
This topic contains 2 replies, has 2 voices, and was last updated by arson2000 4 years ago.
- AuthorPosts
- May 7, 2019 at 7:50 am #22484
Hi,
I am trying to figure out how to implement a price slide in search but my requirements are a little different than I think the plugin normal searches. So I saw examples on your site were the slider is used where multiple products all have different prices. Then those prices are compared, searched and results are shown.
My scenario is this:
I have a project dealing with commercial office lease property. I have multiple building or properties and each has a range of square footage cost.
So one property square footage cost will be in a range of $19.00 to $21.00. Another property will have a square footage cost range from $15.00 to $17.00. Another property will have a square footage range between $16.00 to $20.00.
I want to then have in the search area the functionality that will let the user set a minimum and maximum of square footage cost and then allow the user the search properties within that range. I do have the advanced custom fields plugin on my site. On my custom post type called “Properties” I have a minimum square footage cost field and a maximum square footage field. I can change that structure if I need too.
How would I go about doing accomplishing this?
Thank you for your support in advance.Best regards,
Steve GMay 7, 2019 at 8:55 am #22485Hi Steve,
I think you should create two single sliders, one for each field, and I assume both field are numerical. For the minimum square footage, I would probably do a greater or equals, and for the maximum a lower or equals operator, like so:
– Minimum price: https://i.imgur.com/wLNAdHV.png
– Maximum price: https://i.imgur.com/njIXLJ6.pngThis should be a possible solution.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 7, 2019 at 10:13 am #22488Hi Ernest,
Thank you very much for your help with this issue. I think that solution seemed to work. I will keep testing but think that did the trick. - AuthorPosts
You must be logged in to reply to this topic.