• Resolved Mindy89

    (@mindy89)


    Hi there!
    Amazing plugin! thank you for this.

    I have 2 questions wich i coudn’t find on the support forum yet.

    I want to set the max distance to 35 km as standard. Not as an option for the one looking for a store. Is that possible?

    And i only want the results to show when searched for. not in advance.

    Can u help me with this? thank you allready for your help!

    https://www.ads-software.com/plugins/wp-store-locator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Mindy89

    (@mindy89)

    Oke, i made it a little bit further ??

    I edit the code for start location so it doesn’t shows the adresses on screen. Now the only problem is that the map is zoomed out at it max (i believe) and it still shows the store locations on the map without some one searching for it.

    you can take a look at https://klussenbak.com/verhuurlocaties/ for the result. I hope you van help me. Thanks.

    I know how to set it to 35km as a standard. go into settings and remove the bracket around 50km in Search radius options* and put the bracket around 35km instead like this (35), if you dont have the number 35 in the list just add it.

    I changed mine from 50 miles and set mine to 5 miles as a standard this way

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @mindy89 you shouldn’t have to edit the code to disable the auto loading of locations.

    You can disable it on the settings page under “Load locations on page load:”, just make sure it’s unchecked.

    If you want to remove the option for users to set a radius, you have to remove the dropdown from the /frontend/templates/default.php ( assuming you use the default one ) The div you want to remove is “<div id=”wpsl-radius”>”.

    You also need to hardcode the radius value in the /js/wpsl-gmap.js, search for “ajaxData.radius” and set the value you want to be the default.

    Thread Starter Mindy89

    (@mindy89)

    My god you people are amazing. Thank you for the help! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set radius by default and display results only when entering zipcode’ is closed to new replies.