• Resolved mk3467

    (@mk3467)


    Hi there,

    We have used the WP Store Locator plugin on this client website for a couple of years to show locations on a map and provide a search option to find a specific location.

    The client recently contacted me to say that the search isn’t working as they were expecting.

    1. If I type part of the name for a location it shows no results. I need to add the whole place location to show that in search results.
    2. When I search for particular location, I want to show the store details in the map even before I hover the mouse to the search results. I want to appear that in the map just the moment I search for it.

    Is there anything I can do to get this working better?

    Thanks in advance for your help.

Viewing 1 replies (of 1 total)
  • Hi there, thanks for reaching out.

    Regarding the first question: the way the plugin works, it accepts a search term and then you have to hit “search”. Generally speaking, whatever you type in the search box will be sent to Google to try and reverse geocode the search term to obtain a pair of coordinates. So you need to type the whole thing before the plugin sends the data to Google for them to do the reverse geocoding. It is a costly operation and cannot be done on the fly.

    As for your second enquiry, this is more or less the same. The plugin expects you to type a search term, and then hit “search” to perform the search. Reverse geocoding and searching the map, and then matching with the stores locally saved in your WordPress is a costly operation, so it cannot be done “in real time” as you type, sorry about that.

    I hope that helps.
    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Wp store search is not working as expected’ is closed to new replies.