Change the Search Results Limit

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

Overview

When an address is searched within Store Locator, a list will appear with all the store locations within the radius to the searched address.

You can limit the number of stores that appear with each search.

Example

You can show only the 5 closest stores whenever an address is searched.

To change the search results limit, 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 Footer HTMLfield:

    Note: Adjust the script as needed. This code will have the drop-down display options of 5 and 10 results.The 5 results option displays by default.

    <script>
    jQuery(".search_limit select")[0].length=0;
    jQuery(".search_limit  select").html('<option value="5" selected="selected">5</option><option value="10">10</option>');
    </script>

    paste this code in the Page Footer HTML

  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