Select Page
Topic Progress:
Course Status: N/A

Issue With Store Locator Search

The store locator shortcode from Yoast Local allows a business to list multi locations on a Google Map on their website. Customers can search for the nearest stores and plan their trip. Its a useful tool to have on your website as it increases your customer’s convenience.

We’ve had complaints from our clients that they had trouble searching for their location using this store locator. The issues ranged from typos in the user searches to a postcode only search which google was getting confused with. We found in some cases a search for an Australian Post Code delivers results for the USA or the completely wrong area.
. It was a valid issue, one which could cause a loss of a potential lead!

The Solution

What if the user’s which making searches on the store locator are shown a list of possible matches for their query? It’s exactly how google search operates!

That’s what we have done. The end result is less to no typos for queries. For only post code number searches, google is no longer confused as we let google know that we are only interested in postcodes when numbers are typed. We can also restrict the searches to a particular country. So no more clashes for same postcode from different countries!

Your users will be will happy!

The Yoast Local SEO Toolkit provides a shortcode, df_wpseo_storelocator. It adds search query autocomplete and restriction of search by country over the default store locator shortcode from the Yoast Local Plugin.

With this shortcode you can

Google Places Autocomplete Suggestions and df_wpseo_storelocator Shortcode Screenshot

Most of the options for the shortcode are same the options for wpeseo_storelocator shortcode.

  • id: the ID of your location. Use this attribute when you have multi locations and/or you’re using this shortcode * on another page than the location page itself (for example your contact page)
  • oneline: true/false. Whether to have address all on one line.
  • show_state: true/false. Default to true. Whether to show the State/Region or not.
  • show_country: true/false. Default to true. Whether to show the Country or not.
  • show_phone: true/false. Default to true. Whether to show the Phone number or not.
  • show_phone_2: true/false. Whether to show another phone number or not.
  • show_fax: true/false. Whether to show a fax number or not.
  • show_email: true/false. Whether to show an email or not
  • show_email: true/false. Whether to show an email address or not.
  • show_url: true/false. Whether to show a url or not.
  • show_vat: true/false. Whether to show a vat number or not.
  • show_tax: true/false. Whether to show a tax number or not.
  • show_coc: true/false. Whether to show a Chamber of Commerce ID number or not.
  • show_logo: true/false. Whether to show a logo or not.
  • hide_closed: true/false. Whether you want to hide your closed days or not.
  • comment: Need to enter information.
  • show_opening_hours: true/false. Default to false. Whether to show the opening hours or not. When the opening hours are not filled in it will show 12:00 AM as default text.
    oneline: true/false. Default to false. Whether to show the address information in one line (true), or one line per address
    part (false).

To restrict autocomplete results by country, following is the options

  • restrict_by_countries: Requires ISO “ALPHA-2 country code. At present it restricts search results to a single country.
  • id: the ID of your location. Use this attribute when you have multi locations and/or you’re using this shortcode * on another page than the location page itself (for example your contact page)
  • oneline: true/false. Whether to have address all on one line.
  • show_state: true/false. Default to true. Whether to show the State/Region or not.
  • show_country: true/false. Default to true. Whether to show the Country or not.
  • show_phone: true/false. Default to true. Whether to show the Phone number or not.
  • show_phone_2: true/false. Whether to show another phone number or not.
  • show_fax: true/false. Whether to show a fax number or not.
  • show_email: true/false. Whether to show an email or not
  • show_email: true/false. Whether to show an email address or not.
  • show_url: true/false. Whether to show a url or not.
  • show_vat: true/false. Whether to show a vat number or not.
  • show_tax: true/false. Whether to show a tax number or not.
  • show_coc: true/false. Whether to show a Chamber of Commerce ID number or not.
  • show_logo: true/false. Whether to show a logo or not.
  • hide_closed: true/false. Whether you want to hide your closed days or not.
  • comment: Need to enter information.
  • show_opening_hours: true/false. Default to false. Whether to show the opening hours or not. When the opening hours are not filled in it will show 12:00 AM as default text.
    oneline: true/false. Default to false. Whether to show the address information in one line (true), or one line per address
    part (false).
  • To restrict autocomplete results by country, following is the options

    • restrict_by_countries: Requires ISO “ALPHA-2 country code. At present it restricts search results to a single country.

    Divi Framework - build anything with Divi to create your online business.

    30 day money back guarantee

    Safe & Secure online payment

    Support team & documentation