Magento 2 City Dropdown Manager | Restrict Checkout by City

City Dropdown Manager replaces the free-text city field in Magento 2 with a dropdown. You add cities in the admin panel and link each one to its region. Customers can then only pick from your list, so city names arrive spelled the same way every time and orders stay inside the areas you deliver to.

  • Add, edit, and delete cities from the admin panel
  • Link each city to its region
  • Show the city dropdown in the storefront checkout, the customer address form, admin order creation, and the admin customer address form
  • Restrict deliveries to specific cities by limiting the dropdown options
  • Works with our free Region Manager extension
  • [New] Hyvä checkout city dropdown, plus Hyvä theme support
  • [New] Bulk import cities into Magento 2 from a CSV file
  • [New] Compatible with Magento 2.4.8-p5 & 2.4.9
Addons
$60.00
  • 30 days money back guarantee
  • 1 year free support & upgrade
  • Lifetime license to source code
Description

Why the default city field causes problems

Magento 2 asks customers to type their city by hand in checkout and in address forms. People misspell names or write the same city several different ways, and your address data gets messy. Stores that deliver only to certain areas also have no built-in way to turn away addresses outside those areas. Those orders get placed anyway and cancelled later.

How the extension fixes it

Adding a city dropdown to Magento 2 checkout and customer address forms means customers choose a city instead of typing one. You manage the list from the admin panel, and each city belongs to a region, so the list matches the region the customer selected. If you only serve certain areas, add only those cities and the dropdown will offer nothing else. That makes this a simple Magento 2 service area extension too.


City dropdown in the admin order creation form

City Dropdown in Admin Order Creation Address FormCity Dropdown in Admin Order Creation Address Form

City dropdown in the admin customer address form

City Dropdown in Admin Customer Creation Address FormCity Dropdown in Admin Customer Creation Address Form

Restrict Magento 2 checkout by city

  • Only the cities you add show up in the dropdown, so customers can't order to an address outside your delivery area.
City Dropdown in Magento 2 Checkout Address FormCity Dropdown in Magento 2 Checkout Address Form

Cleaner address data

  • Every address uses the same city and region names, spelled the way you entered them.
Magento 2 City Dropdown in Customer Address FormMagento 2 City Dropdown in Customer Address Form

Manage cities in the admin

  • Add or edit a city and pick its region from a dropdown.
Link City with Region from Magento 2 Admin panelLink City with Region from Magento 2 Admin panel

Import cities in bulk from CSV

  • The extension includes a sample CSV file. Fill it in with your cities and service areas, then import it.
Import Cities interface in Magento 2Import Cities interface in Magento 2
Import Cities Sample CSV FileImport Cities Sample CSV File

Hyvä theme support

  • In a Hyvä theme, the city field shows up as a dropdown when customers add or edit an address in their account.
Link City with Region from Magento 2 Admin panelLink City with Region from Magento 2 Admin panel

Hyvä checkout support

  • The city field is a dropdown in both the Hyvä one-page checkout and the Hyvä default checkout.
Link City with Region from Magento 2 Admin panelLink City with Region from Magento 2 Admin panel
Link City with Region from Magento 2 Admin panelLink City with Region from Magento 2 Admin panel
Link City with Region from Magento 2 Admin panelLink City with Region from Magento 2 Admin panel

Grid filtering

  • Filter cities by region, search them by name, and delete several at once with a mass action.
Magento 2 City Dropdown Advanced Grid FilteringMagento 2 City Dropdown Advanced Grid Filtering

Selected city shown everywhere

  • The chosen city appears in the admin, on the storefront, and in order emails.
Magento 2 City Drodown Display Selected City EverywhereMagento 2 City Drodown Display Selected City Everywhere

Use it with Region Dropdown Manager

  • To get a city and region dropdown in Magento 2, pair this extension with our free Region Dropdown Manager. Together they work as a region and city manager for Magento 2, covering both fields.
Release Notes

Version 1.0.3

  • Added support for a city dropdown in admin order creation
  • Added support for a city dropdown in admin customer address creation and editing

Version 1.0.2

  • Compatible with Magento 2.4.8-p5 & 2.4.9

Version 1.0.1

  • Added bulk city import functionality
  • Code improvements

Version 1.0.0

  • Initial release
Reviews (1)
Rating
Extension working as expected
Review by
I upgraded from the free region manager extension to this one to manage cities, and it's working well in my checkout forms.

1 Item

Write Your Own Review
Only registered users can write reviews. Please Sign in or create an account

Frequently Asked Questions

Yes. It supports Magento Open Source and Adobe Commerce 2.4.1 through 2.4.9, including 2.4.8-p5.

Yes, it works with every version of Hyvä, including the latest release.

Please follow our installation guide to install the extension to your store.

Yes, with Hyvä Checkout 1.3.0 and later.

Yes. You decide which cities appear in the checkout dropdown, and customers can only choose from that list. If you deliver only in Dubai, Abu Dhabi, and Sharjah, add those three cities and no other city will appear as an option. That blocks orders to addresses you don't serve.

Install the extension and add your cities in the admin panel. You don't need to write any custom code. The city field becomes a dropdown in the checkout shipping form and in the customer account address form.

Yes. By default Magento 2 checkout uses a free-text city field, so customers can type anything. With this extension it becomes a dropdown filled from your admin list.

Still have questions?

Contact Support

Get This Extension for Your Store Today!