Default 'Near Me' Max Miles – change 200

This topic contains 10 replies, has 4 voices, and was last updated by  Stiofan O’Connor 7 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #365044

    Ollie Stott
    Expired Member
    Post count: 60

    Hi there

    We’re wanting to change the default max miles on the Advanced Search tool from 200 miles. I’ve seen the request before but didn’t see an answer.

    The main reason is that we want much of our functionality to run on mobile device or primarily on proximity to a place, therefore we want to restrict it to, let’s say 10 miles!

    With the current setting, to get the low distances is not that easy, especially on mobile.

    Any thoughts much appreciated.

    #365058

    Kor
    Moderator
    Post count: 16516

    Hi Ollie,

    You can configure this option in GD > Advanced Search > Default Near Me miles limit as shown in this screenshot http://prntscr.com/efglg7

    Thanks!

    #365071

    Ollie Stott
    Expired Member
    Post count: 60

    Hi Kor

    Yes I’ve seen that and as you can see the default is set to 5 but we want to have the max set at say 15 miles as it’s primarily GeoLocation run on the go.

    The reason being is that we want to run it primarily by geolocation and therefore people aren’t looking to look up to 200 miles away so there is at least 150 unnecessary miles on the slider that are not required it and reducing it would give more control in usability.

    #365180

    Ollie Stott
    Expired Member
    Post count: 60

    So is there any way of being able to reduce the max distance? Is there a hook that can be done which is unobtrusive or is it part of js?

    #365191

    Paolo
    Site Admin
    Post count: 31206

    The developers have been alerted and will let you know asap if there’s an easy way to do it.

    Thanks for your patience

    #365215

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    There is currently no easy way to do that, we could add a filter or give you a JS snippet to do it on the fly on load?

    Stiofan

    #365220

    Ollie Stott
    Expired Member
    Post count: 60

    Ok that would be great – assume I can load it from an external js script without problem?

    #365697

    Ollie Stott
    Expired Member
    Post count: 60

    Sorry – is there a script for this available?

    #365706

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Ollie,

    GD>Design>Scripts>Footer script:

    (change the 40 to whatever u want)

    
    
    <script>
     jQuery(function(){
       if(jQuery('.gdas-range').length){
            jQuery('.gdas-range').prop("max",40);
            jQuery('.gdas-range').trigger("change");
        }
    });
    
    </script>

    Thanks,

    Stiofan

    #365734

    Ollie Stott
    Expired Member
    Post count: 60

    Awesome Stiofan – thanks very much! Ticket resolved

    #365855

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome 🙂

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount