Linux 软件免费装
Banner图

CityFee – City Dropdown & Delivery Fees for WooCommerce

开发者 medsalemkhattat
更新时间 2026年11月14日 08:05
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

checkout cash on delivery city dropdown shipping by city delivery fees

下载

1.0.1 1.1.0

详情介绍:

In many countries couriers price delivery by city, not by postcode, and customers type their city in many different ways. CityFee replaces the free-text city field with a dropdown (a select list) of the cities you deliver to and charges the delivery fee of the chosen city: city-wise delivery charges that you set. It is built for Cash on Delivery stores, but works for any WooCommerce store that ships by city. Free features How it works
  1. Go to WooCommerce > CityFee, choose a country and add or paste your cities with their fees.
  2. In WooCommerce > Settings > Shipping, add "Delivery by city" to the shipping zone that covers the country, like Flat rate, and set the default fee.
  3. Customers now choose their city from the list and see its delivery fee at checkout.
CityFee comes without city lists: you add your own, so the list matches your courier's cities exactly. Try it first with "Load demo cities" (7 cities of Mauritania). CityFee Pro A paid version, CityFee Pro, adds city groups (for example Zone A / B / C) with one fee per group, free delivery above a cart amount per city or group, hiding Cash on Delivery for selected cities, and full CSV import and export of your city lists. The free plugin works on its own and shows no advertising. Pricing and a 7-day free trial (no card needed): dssarl.com/cityfee Privacy CityFee does not send any data to external services and adds no tracking. City lists and settings are stored in your WordPress database; orders and customer addresses use WooCommerce's normal fields. CityFee is developed by Digital Services SARL (https://dssarl.com/). Getting fake Cash on Delivery orders? Our free plugin OrderProof asks customers to confirm COD orders with a WhatsApp code before you ship. Questions or problems? Open a thread in the support forum. If CityFee is useful to your store, an honest review helps other store owners find it.

安装:

  1. Install and activate WooCommerce.
  2. Install CityFee from Plugins > Add New, or upload the plugin folder to /wp-content/plugins/, and activate it.
  3. Open WooCommerce > CityFee to add your first country and its cities.
  4. Add the "Delivery by city" method to a shipping zone in WooCommerce > Settings > Shipping.

屏幕截图:

  • Classic checkout: the order summary shows the delivery fee of the chosen city (Rabat, 35).
  • Checkout block: the city list and the delivery fee of the chosen city.
  • WooCommerce > CityFee, cities of a country: fees, default fee, "Not delivered" cities, order, the add form and the paste box.
  • Countries overview: city dropdown and postcode setting per country.
  • The "Delivery by city" shipping method in a shipping zone, with its title, tax status and default fee.
  • The cities screen in Arabic (right-to-left).

升级注意事项:

1.1.0 New: import your city lists from States, Cities, and Places for WooCommerce. 1.0.1 Readme and listing text only; no change to how the plugin works. 1.0.0 First public release.

常见问题:

I use States, Cities, and Places for WooCommerce. Can I move to CityFee?

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.

How do I add my cities and fees quickly?

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.

Can I set different delivery charges for each city?

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.

Does it work for my country?

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).

Does it work with the Checkout block?

Yes. The city dropdown and the fee work in both the classic checkout and the Checkout block.

Does it come with city lists?

Not yet. You add or paste your own list, so it matches your courier's cities exactly.

What happens to the country's region (state) field?

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.

What if I don't deliver to a city?

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.

Can I rename a city later?

Yes. Each city has a code that orders store; renaming the city keeps its code. Past orders keep the address they were placed with.

How many cities can a country have?

Up to 2,000. Above 300 the admin shows a reminder, because the Checkout block shows a plain dropdown without search.

Is it translated?

CityFee is ready for translation and for right-to-left languages. French and Arabic translations have been prepared for translate.wordpress.org.

What is removed when I delete the plugin?

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.

更新日志:

1.1.0 1.0.1 1.0.0