PHPackages                             php-cuong/magento2-city-dropdown - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-cuong/magento2-city-dropdown

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

php-cuong/magento2-city-dropdown
================================

Magento2 City Dropdown Extension

6523

Since Mar 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/php-cuong/magento2-city-dropdown)[ Packagist](https://packagist.org/packages/php-cuong/magento2-city-dropdown)[ RSS](/packages/php-cuong-magento2-city-dropdown/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Magento 2 City Dropdown Extension
=================================

[](#magento-2-city-dropdown-extension)

As far as we know, by default, Magento 2 shows the city field in the input text. In some case, your store only ships the order to some cities, so the city field in the input text, it can not resolve your requirement.

Today, I provide you with a feature that allows the city field shows in the drop-down. The customer only can place an order when they select a city in the drop-down which you set it in the backend.

So where will the city drop-down be applied?

On the storefront:

1. When the customer registers a new account.
2. When the customer edits an address or creates a new address.
3. When the customer estimates Shipping fee.
4. When the customer places an order, the city drop-down will be displayed on both the shipping address and billing address.

On the backend:

1. When the administrator edits the customer, the city drop-down will be displayed on the customer address.
2. When the administrator edits an order, the city drop-down will be displayed on both the shipping address and billing address.
3. When the administrator creates a new order on the backend.
4. When the administrator adds the condition in the price rule, the shipping city will be displayed in the Cart attribute

See the video how this extension works.

[https://www.youtube.com/watch?v=ugZXjsNKM0w&amp;index=6&amp;list=PL98CDCbI3TNslCicN4cJyR4\_hBXR1clhW](https://www.youtube.com/watch?v=ugZXjsNKM0w&index=6&list=PL98CDCbI3TNslCicN4cJyR4_hBXR1clhW)

This extension is created by me, so if you want to use these features of the city drop-down, please do not hesitate to contact me now via:

1. Skype: cuongnq87
2. Facebook:
3. Extension link:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f7bc25983eb7357a3f984a2d831cbee0752dc43ff33c95910d6fbc834a7ddfb?d=identicon)[PHPCuong](/maintainers/PHPCuong)

---

Top Contributors

[![php-cuong](https://avatars.githubusercontent.com/u/13449271?v=4)](https://github.com/php-cuong "php-cuong (6 commits)")

---

Tags

city-dropdowncity-dropdown-extensionmagento-2-city-dropdownmagento2-extension

### Embed Badge

![Health badge](/badges/php-cuong-magento2-city-dropdown/health.svg)

```
[![Health](https://phpackages.com/badges/php-cuong-magento2-city-dropdown/health.svg)](https://phpackages.com/packages/php-cuong-magento2-city-dropdown)
```

###  Alternatives

[leocarmo/graceful-shutdown-php

Graceful Shutdown for PHP

18108.2k](/packages/leocarmo-graceful-shutdown-php)[bogdaan/open-location-code

Open location code for php

1076.5k](/packages/bogdaan-open-location-code)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
