Linux 软件免费装
Banner图

CityFee – City Dropdown & Delivery Fees for WooCommerce

开发者 medsalemkhattat
更新时间 2026年11月26日 06:42
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

cash on delivery cities city dropdown shipping by city delivery fees

下载

1.4.0 1.1.0 1.2.0 1.3.0 1.4.1 1.0.1 1.4.2 1.4.3 1.5.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 or charges a local delivery fee per city or area. Cities can be grouped by region (state, province, governorate, wilaya or district) and shown as "City – Region" in the dropdown, so customers find their city quickly in long lists. The city select works in the WooCommerce Checkout block as well as the classic checkout. Free features How it works
  1. Go to WooCommerce > Settings > Shipping > Cities, 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.
Starter lists of main cities, grouped by region, are included for 47 countries (from Wikidata, with English, French and Arabic names), including Morocco, Algeria, Tunisia, Egypt, Saudi Arabia, the United Arab Emirates, Oman, Mauritania, Nigeria, Pakistan, Bangladesh and most of Latin America: open the country and click "Load starter list" (all regions or only the ones you deliver to), then edit it to match your courier. For other countries you add or paste your own list. Already using another plugin for states and cities? If "States, Cities, and Places for WooCommerce" is installed, CityFee can import its lists in one click (see the FAQ). Try CityFee 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 > Settings > Shipping > Cities 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 > Settings > Shipping > Cities: the cities of a country with their other spelling, region, code and fee (Morocco starter list).
  • WooCommerce > Settings > Shipping > Cities: countries with the city dropdown and postcode settings, and the starter lists for 47 countries.
  • The "Delivery by city" shipping method in a shipping zone, with its title, tax status and default fee.
  • A country screen: dropdown, postcode and "show the region" settings, the add form, the paste box and "Load starter list" (all regions or only some).
  • Checkout block with the region shown next to the city ("Casablanca / الدار البيضاء – Casablanca-Settat") and its delivery fee.

升级注意事项:

1.5.0 New: a stop-desk (office pickup) fee per city, next to the home-delivery fee. Your current fees are kept. 1.4.3 Algeria: 69 wilayas. Quick start steps on the Cities screen. 1.4.2 Tested with WooCommerce 11.3. No functional changes. 1.4.1 Small, dismissible review request on the Cities screen. 1.4.0 City lists now in WooCommerce > Settings > Shipping > Cities (menu item removed). 1.3.0 Starter lists for 47 countries, and cities grouped by region. 1.2.0 New: one-click starter lists of main cities for 9 Cash on Delivery countries. 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 > 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.

How do I add my cities and fees quickly?

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.

Can I charge one price for home delivery and another for stop desk (office pickup)?

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.

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

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?

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.

Cash on Delivery disappeared after I added "Delivery by city". Why?

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.

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.5.0 1.4.3 1.4.2 1.4.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 1.0.0