| 开发者 | medsalemkhattat |
|---|---|
| 更新时间 | 2026年11月26日 06:42 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/, and activate it.Yes. Keep that plugin installed, open WooCommerce > Settings > Shipping > Cities 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 > Settings > Shipping > Cities, 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. This is how many Algerian couriers price each wilaya. In your shipping zone, add "Delivery by city" twice: leave the first one on "Fee to charge: Home-delivery fee" (for example titled "Home delivery") and set the second one to "Stop-desk fee" (for example titled "Stop desk"). The Cities screen then shows a "Stop-desk fee" next to each city's fee. You can paste both fees at once, the home fee first:
Alger;400;250
Oran;600;300
A city without a stop-desk fee uses the default fee of the stop-desk method; if that is empty too, stop desk is not offered for that city. "Not delivered" cities get neither option. Customers choose one of the two at checkout, and Cash on Delivery works with both (if Cash on Delivery is limited to some shipping methods, add "Delivery by city" to its list). It is one price per city for each option: CityFee does not choose a specific office or price by weight.
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 > Settings > Shipping > Cities 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.
Yes, starter lists of main cities for 47 countries: Algeria, Australia, Bangladesh, Barbados, Bolivia, Brazil, Burkina Faso, Chile, Colombia, Cuba, Denmark, Dominican Republic, Ecuador, Egypt, El Salvador, Ghana, Guatemala, Haiti, Honduras, Italy, Kazakhstan, Lebanon, Malaysia, Mauritania, Mauritius, Mexico, Morocco, Nicaragua, Niger, Nigeria, Oman, Pakistan, Panama, Paraguay, Peru, Portugal, Romania, Russia, Saudi Arabia, Spain, Sri Lanka, Tunisia, Turkey, United Arab Emirates, Uruguay, Venezuela, Vietnam. Open the country in WooCommerce > Settings > Shipping > Cities and click "Load starter list"; you can load all regions or only the ones you deliver to. Names follow your site language (English, French or Arabic) with the other spelling shown next to them. Check the list against your courier's cities before going live. For other countries, add or paste your own list.
Check WooCommerce > Settings > Payments > Cash on delivery > "Enable for shipping methods". When that list is not empty, Cash on Delivery is offered only with the shipping methods in it. If it lists, for example, only Flat rate, Cash on Delivery is hidden in the classic checkout and the Checkout block whenever the customer gets "Delivery by city". Add "Delivery by city" to that list, or leave the list empty to offer Cash on Delivery with every shipping method.
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.