| 开发者 | medsalemkhattat |
|---|---|
| 更新时间 | 2026年11月14日 08:05 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/, and activate it.Yes. Keep that plugin installed, open WooCommerce > CityFee and choose your country: an "Import from States, Cities, and Places for WooCommerce" box imports its places as CityFee cities (all of them, or only the states you choose). Then set your delivery fees and deactivate the other plugin, because both plugins change the city field at checkout.
Go to WooCommerce > CityFee, choose the country and paste one city per line. Add the fee after a semicolon:
Casablanca;30
Rabat;35
Tanger
Cities without a fee use the default fee of "Delivery by city". Fees are plain numbers in the store currency. Two columns copied from a spreadsheet (city, fee) work the same way. Tick "Check only" to count the lines before saving anything.
Yes. Each city can have its own fee, cities without a fee use the default fee of "Delivery by city", and you can change many fees at once with bulk edit.
Yes. Choose any country in WooCommerce > CityFee and add the cities your courier serves. You can show another spelling next to each name, for example in Arabic script. If WooCommerce asks for a region (state) in your country, the city list takes its place (see below).
Yes. The city dropdown and the fee work in both the classic checkout and the Checkout block.
Not yet. You add or paste your own list, so it matches your courier's cities exactly.
For a country where you turn the city dropdown on, the city list takes the place of the region field. Stores that need both a region and a city should keep that country switched off.
Mark it "Not delivered". It stays in the list, but "Delivery by city" offers no rate for it, so WooCommerce shows its usual "no shipping options" message unless another method of the zone (for example local pickup) is available.
Yes. Each city has a code that orders store; renaming the city keeps its code. Past orders keep the address they were placed with.
Up to 2,000. Above 300 the admin shows a reminder, because the Checkout block shows a plain dropdown without search.
CityFee is ready for translation and for right-to-left languages. French and Arabic translations have been prepared for translate.wordpress.org.
The city lists, the CityFee settings and the "Delivery by city" methods in your shipping zones. Orders and customer addresses are never changed. Tick "Keep city lists and settings when the plugin is deleted" if you plan to reinstall.