0

Is there any way to add cities as drop down?

I want to add a city drop down for a specific country, there will be no states and city drop down to be shown on the registration page, checkout out the page and all other address books like shipping address and billing address.

  • Could you be little clear , what exactly you want and where these drop down you need – Manoj Deswal Jun 23 '17 at 7:48
  • I want to add a city drop down for a specific country, there will be no states and city drop down to be showed on registration page, checkout out page and all other address books like shipping address and billing address. – Mandar Parbate Jun 23 '17 at 7:51
  • maybe have sense to create google autocomplete in text input? – Nicholas Miller Jun 23 '17 at 7:56
  • Sorry , but can't do google autocomplete – Mandar Parbate Jun 23 '17 at 8:01
  • Any one tried with city drop down? Using UI component or extending the directory module with adding dependency to the city and country – sandip Mar 29 '18 at 4:19
-1

You need to add regions into directory_country_region and directory_country_region_name table. And Magento 2 RegionUpdater will do the trick.

  • And the award for the highest use of region in one paragraph goes to... – Ben Crook Jun 23 '17 at 8:38
  • Sorry, but it does work for state not city – Mandar Parbate Jun 23 '17 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.