• Gabriel
    December 28, 2014 at 8:36 pm #101497

    Hi,

    Is there a way to change the price slider steps ?

    For exemple, my slider is set from $0 to $5.000.000 : I don’t to be able to change the price with $1 steps. $100.000 steps would be clearly more interesting.

    Thanks a lot.

    ANSWER:

    Hi,

    You just need to add in 4 places for all the 4 instances (mobile, search, widget, shortcode)

    step: 100

    to slider_price

    in control.js (line ~276 , ~ line 302, ~line 322 and line ~339 )

    For control.js – path is wpresidence/js/control.js

    Your new code should be something like

     $( "#slider_price_mobile" ).slider({
            range: true,
            min: parseFloat(control_vars.slider_min),
            max: parseFloat(control_vars.slider_max),
    	step:100,
        ////////////////////////////////////////////////////////////////////////////
        /// slider price 
        ////////////////////////////////////////////////////////////////////////////
        
     
        $( "#slider_price" ).slider({
            range: true,
            min: parseFloat(control_vars.slider_min),
            max: parseFloat(control_vars.slider_max),
    		step:100,

    Thanks

    • This topic was modified 2 years ago by  Anna.
    • This topic was modified 1 year, 9 months ago by  Anna.
    • This topic was modified 1 year, 9 months ago by  Anna.
    Anna
    January 19, 2015 at 4:40 pm #102002

    Hi,

    You just need to add in 4 places for all the 4 instances (mobile, search, widget, shortcode)

    step: 100

    to slider_price

    in control.js (line ~276 , ~ line 302, ~line 322 and line ~339 )

    For control.js – path is wpresidence/js/control.js

    Your new code should be something like

     $( "#slider_price_mobile" ).slider({
            range: true,
            min: parseFloat(control_vars.slider_min),
            max: parseFloat(control_vars.slider_max),
    	step:100,

    Thanks

    Gabriel
    January 20, 2015 at 2:58 pm #102047

    Thanks Anna !

    ballyb
    March 11, 2015 at 2:47 am #104266

    Hi,

    New to the site. Could you let me know which .php file i need to access to make the same change?

    Thanks,

    Chris

    Anna
    June 29, 2015 at 7:46 am #113430

    Hi Chris

    This is done only in JS.

    Thank you
    Anna

You must be logged in to reply to this topic.

'
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.