Description
City Shipping for WooCommerce helps stores that charge different delivery fees by city.
- Admin — Under WooCommerce City shipping, add cities and a fee for each.
- Checkout — When more than one city is configured, billing and shipping city fields become dropdowns so customers pick a listed city.
- Shipping — Enable City based shipping in WooCommerce Settings Shipping (your zone). The rate matches the customer’s shipping city (or billing city when shipping to the same address).
- WPML — City labels can be translated in WPML String Translation while order values stay consistent.
- HPOS — Declares compatibility with WooCommerce custom order tables (HPOS).
Requires WooCommerce to be installed and active (WordPress 6.5+ can enforce this via the plugin dependency header).
Installation
- Upload the
cda-city-shipping-for-woocommercefolder to/wp-content/plugins/(or install from a zip namedcda-city-shipping-for-woocommerce.zipthat contains that folder) or use the WordPress Plugins screen. - Activate City Shipping for WooCommerce through the Plugins menu.
- Install and activate WooCommerce if it is not already.
- Go to WooCommerce City shipping and add your cities and fees.
- Go to WooCommerce Settings Shipping, open your zone, and add the City based shipping method.
FAQ
-
How do I set the delivery price for each city?
-
Add one row per city under WooCommerce City shipping (city name and fee). Then add City based shipping to your shipping zone (WooCommerce Settings Shipping). At checkout, the customer’s shipping city (or billing city when not shipping elsewhere) must match a configured row; the plugin uses that row’s fee for the City based shipping rate.
-
Does this work with the checkout block?
-
The plugin targets the classic WooCommerce checkout fields API. Test your checkout experience (shortcode vs block) before going live.
-
How do I translate city names?
-
With WPML active, register strings under String Translation for the
cda-city-shipping-for-woocommercecontext.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“CDA City Shipping for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “CDA City Shipping for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.3
- Rename the main plugin file to
cda-city-shipping-for-woocommerce.phpto match the WordPress.org plugin slug (use zipcda-city-shipping-for-woocommerce.zipand top-level foldercda-city-shipping-for-woocommercewhen packaging).
1.0.2
- Readme: remove template FAQ; add end-user FAQ for configuring cities and fees.
- Security: verify WooCommerce checkout AJAX / submit nonces before reading checkout POST; restrict admin save to the City shipping screen.
1.0.1
- Plugin Check and WordPress.org readiness (textdomain, admin scripts, security-related PHPCS notes, readme).
- Add readme.txt, languages template (POT), uninstall handler, and directory index files.
- Fix checkout validation callback argument order.
- Improve cheque/check payment zero-shipping behavior with shipping cache invalidation.
1.0.0
- Initial release.
