Search by zip code

This topic contains 6 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #445176

    Ahmed Deghiedy
    Expired Member
    Post count: 18

    Hi,

    When searching by zip code on a directory we created it only searches when we have space after the first 3 characters in the zip code but not if no spaces.

    Is it possible to get it to search regardless of the space after the first 3 characters?

    I will send the website and example in a private note below

    #445177

    Ahmed Deghiedy
    Expired Member
    Post count: 18
    This reply has been marked as private.
    #445236

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    I see what you mean there. When you type it in without a space there are no results.

    I have added “United Kingdom” to the settings at

    General – Search – Add location specific text to (Near) search for Google

    Unfortunately this did not change the outcome.

    The error when entering the near search without a space is attached in a screenshot and says ” Search was not successful for the requested address.”

    I have flagged this for the developers who can tell us if there is anything to be done about search for UK post codes that have spaces in them.

    The search page search box text is showing as white (due to the CSS for your homepage), this should change it back to black on the search page:

    
    
    
    body .geodir-listing-search.gd-search-bar-style .geodir-loc-bar .clearfix.geodir-loc-bar-in .geodir-search input[type=text] {
        color: black !important;
    }
    
    #445292

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    The OSM geocoder seems to fall down if the post code is not entered with the correct format: https://nominatim.openstreetmap.org

    I have added some special regex so that if it detects a post code it will auto add the space needed before geocode, i have added this patch to your site, it will be in the next release so no need to worry about updating.

    Thanks for reporting.

    Stiofan

    #445395

    Ahmed Deghiedy
    Expired Member
    Post count: 18

    Hi Alex & Stiofan,
    Many thanks for your help folks.
    It is working perfectly now.

    Much appreciated

    #445418

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome! 🙂

    #445421

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket