Search code examples
magentopostal-code

Autofill state and postcode according to the city in magento checkout page


Hi guys i have searched for it a lot but didn't find a good solution of it. I want to auto fill the postcode and state of Australia after customer enters their city in magento checkout page.What would be the best way to achieve this?Can you recommend some extensions if there is any or suggest some solutions. I tried to use the extension of Fontis but it didn't work. So guys can someone help.Any help would be appreciated.


Solution

  • I got the solution of my question.As there is no answer provided i thought my answer may be helpful.At first my main problem is to create a table with the Australian postcodes, suburb and state. For that i googled a lot and after all i got the csv file of all these information. I filtered it according to my requirement.

    Here is the link to the csv file that consist of Australian postcodes, suburb and state. here.

    Now you can use this csv to create a table in a database which further is used in autocomplete.

    All the codes that i have used may not be usable in your case so i didn't care to put it.

    But i think this will help a lot.