• Resolved Ari Jahan

    (@arian0009)


    Fantastic plugin just wanted to say!

    Just a quick query, for UK the address field are not quite right. Is there PHP code I could use to tweak or fix these?

    So from searching around, the correct component from Google Place API for UK’s county should be “administrative_area_level_2”

    Finally, the autocomplete is shortening “Road” to “Rd” or “Avenue” to “Ave”, again how can tweak this to fetch the Long_name version instead so word don’t get shortened?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Uriahs Victor

    (@uriahs-victor)

    Hi there, thank you, I’m glad you like the plugin. Thanks for the details about the UK, right now the plugin is using administrative_area_level_1

    Unfortunately, there’s no way to change this yourself, but no threat, I’ll add a way to change it in a future update to the plugin (probably the next).

    Regarding your other point, for Street address, the plugin makes use of the formatted_address from Google. This means that this info is pulled directly from google and they’re the one shortening those words.

    Thread Starter Ari Jahan

    (@arian0009)

    Hi Uriahs,

    Fantastic! I really look forward to seeing the update.

    Regarding the second point are you sure about this? I was doing a bit of reading on googles api page and seems you can actually request the “long_name” but I could be wrong perhaps

    I was trying out a few various plugins and noticed Address Autocomplete Anything but WPSUNSHINE has actually implemented this already and users can assign if they want the long or short version of Address 1.

    Is this an easy implement like the other?

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    @arian0009 Thanks for the wpsunshine screenshot, that is what I have always had in mind for adding more functionality to the autocomplete features of Kikote, I’ve just not had enough requests for it since the defaults are pretty universal.

    Right now Kikote uses the “Formatted address” by Google and adds it to the Address Line 1 in WooCommerce, but yes it is possible to give users the ability to select what fields they want to pull from the Google API.

    I have already added this to github to work on it in a future release of Kikote. Unfortunately I can’t now give an exact ETA on when it will be out. I aim for a monthly release cycle but there will be no new release this month. So this would most likely be in next month’s release.

    I’m going to close this thread for now, feel free to come back to it next month for an update or open a new thread if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tweak fields for Autocomplete’ is closed to new replies.