Lock Search Distance to Unlimited

Modified on Fri, 1 Sep, 2023 at 3:32 AM

Overview

By default, Store Locator will display a radius around each search to show nearby stores. This will only display the closest stores to the searched location.

Locking the search distance to unlimited will allow your map to continue to display all the pins for your locations, even when an address is searched.

To lock the search distance to unlimited, please follow the steps below.


Setup

  1. From the Shopify admin, select Apps.
  2. Select Store Locator.
  3. Select Settings.

    select settings

  4. Select Display Settings.

    select display settings

  5. Copy and paste this code into the Page Header HTML field:
    <script>
    jQuery(function($) {
    $(".search_within_distance select")[0].length=0;
    $(".search_within_distance select").html('<option value="9999" selected="selected">No Limit</option>');
    });
    </script>

  6. Select Save

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article