- September 15, 2017 at 7:14 am #14731
i want to implement a range slider for my job search. the slider shows the “yearly salary” of available jobs.
now the problem is, that yearly salaries are normally up to 50.000€, but in some special cases could be 100.000€+.
i don’t want the slider to always show 100.000 or more as the maximum, when all the jobs listed are below 50.000 – so can i somehow set the min & max value automatically – based on current values?
i guess this feature is not available – but maybe you can point myself in the right direction so i can code it myself.
my first try would be to set a script to find the current min & max value, and then change the values for ‘asp_f_range_from’ and ‘asp_f_range_to’ in the “ajaxsearchpro” table in the database. but maybe you can point me in a better direction – or maybe there are some hooks that i could use?
thanks for your help!
tobiasSeptember 16, 2017 at 10:41 am #14737
There is actually a filter that is executed for each item in the custom field filters list, before it is outputted. To change the properties of the filters, you can use that.
I’ve made an example, which will change the range slider ‘from’ and ‘to’ values to 10 000 and 100 000:
Basically you can use this to as a base for your needs.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.