skip to Main Content

Google Maps Auto Address on X-Cart 4

Google Maps Auto Address On X-Cart 4

I am almost live with the google maps auto complete address feature on a clients store team task management app. There are some limitiations that I have come across.

I have decided to not update the country field, as mapping the country given by Google to x-carts country code is a pain and not worth the development cost yet. Also as one page checkout uses javascript to load the address section if the address is already loaded, ie, you have logged in before getting to checkout, then I have not implmented this functionality.

The feature becomes active when the one page checkout loads and the address fields are bank. As you start to type in the address line 1 field the dropdown will appear. This also works for the shipping address too.

Back To Top