• Resolved revowebsites

    (@revowebsites)


    Hello,

    I would like to report a problem with Spain. When autocompleting any address, the city is not apppearing and the state is filling where the city should appear.

    Best regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • ArtGoddess

    (@artgoddess)

    Yes, it’s happening also in my spanish online store.

    Please, @natekinkead let us know how we can solve this. Also, let us know if you need assistance in testing. Thank you!

    squaredpx

    (@squaredpx)

    I have a similar issue, but no exactly the same. In my case the city is correctly filled but the state field gets emptied, even if it was filled before by Woocommerce Geolocation API.

    I’m happy to help you if you need help to solve this. Thanks!

    squaredpx

    (@squaredpx)

    I found the solution (to my problem at least). In the JS file (lines 101 & 297) spanish woocommerce stores need the same condition as GB stores (the select field use the short version of the state as value)

    Plugin Contributor natekinkead

    (@natekinkead)

    @squaredpx, thank you for your help pointing to a possible solution. That solution in there was more of a temporary. I assumed there were more countries like that, but I didn’t know which ones. I just tried that change and now when I search an address in Spain, in populate (in my example) Madrid for both the City and the State. Is that correct? Let me know.

    squaredpx

    (@squaredpx)

    @natekinkead, yes, that’s correct. In that case city and state is the same. You can try this address to check an example with different city and state results: “Calle Castelar, Santander, Spain” and that should return “Santander” as city and “Cantabria” as state. Thanks for your quick reply.

    Plugin Contributor natekinkead

    (@natekinkead)

    You’re right, that works. I just released an update with this fix. Thanks!

    ArtGoddess

    (@artgoddess)

    As far as I can test, this issue seems solved. Thank you @natekinkead 🙂

    Plugin Contributor natekinkead

    (@natekinkead)

    You’re welcome!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Spain state not filling, city not appearing’ is closed to new replies.