Title: City Based Shipping for Bangladesh
Author: Md Shorov Abedin
Published: <strong>Novambor 29, 2025</strong>
Last modified: Novambor 29, 2025

---

Search plugins

![](https://ps.w.org/city-based-shipping-for-bangladesh/assets/banner-772x250.png?
rev=3405916)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/city-based-shipping-for-bangladesh/assets/icon.svg?rev=3405916)

# City Based Shipping for Bangladesh

 By [Md Shorov Abedin](https://profiles.wordpress.org/iamovk/)

[Download](https://downloads.wordpress.org/plugin/city-based-shipping-for-bangladesh.1.0.1.zip)

 * [Details](https://rhg.wordpress.org/plugins/city-based-shipping-for-bangladesh/#description)
 * [Reviews](https://rhg.wordpress.org/plugins/city-based-shipping-for-bangladesh/#reviews)
 *  [Installation](https://rhg.wordpress.org/plugins/city-based-shipping-for-bangladesh/#installation)
 * [Development](https://rhg.wordpress.org/plugins/city-based-shipping-for-bangladesh/#developers)

 [Support](https://wordpress.org/support/plugin/city-based-shipping-for-bangladesh/)

## Description

City Based Shipping for Bangladesh provides an easy way to configure different flat
rate shipping costs for customers inside Dhaka and those elsewhere in Bangladesh.
Simply set up two WooCommerce Flat Rate methods in your shipping zone (one for Dhaka
and one for outside Dhaka) and then configure their instance IDs and labels on the
plugin settings page. The plugin will hide the wrong rate at checkout and can even
override the cost and label displayed. City and state field changes update totals
in real time thanks to a small JavaScript helper.

 * Match shipping methods by instance ID or label.
 * Optionally override the cost and label of each rate at checkout.
 * Watches the city and state fields (including Select2 dropdowns) and refreshes
   shipping instantly.
 * Tested with WooCommerce and the standard checkout fields; supports Bangladesh
   districts.

## Screenshots

[⌊Settings page showing options for labels, instance IDs and cost overrides.⌉⌊Settings
page showing options for labels, instance IDs and cost overrides.⌉[

Settings page showing options for labels, instance IDs and cost overrides.

[⌊Checkout page automatically showing the correct rate based on the selected city.⌉⌊
Checkout page automatically showing the correct rate based on the selected city.⌉[

Checkout page automatically showing the correct rate based on the selected city.

[[

[[

[[

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/` directory or install it directly
    through the WordPress plugin installer.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to **WooCommerce  Settings  Shipping** and ensure you have a Flat Rate for Dhaka
    and another for outside Dhaka. Note the instance IDs shown in the URL when editing
    each method.
 4. Navigate to **WooCommerce  City Based Shipping** and enter:
 5.  * The labels of your Dhaka and outside Dhaka shipping methods.
     * The instance IDs (optional but recommended for reliable matching).
     * Optionally, override costs for each rate if you wish to ignore WooCommerce flat
       rate settings.
 6. Save changes. Shipping options will now automatically adjust based on the customer’s
    selected city/state in checkout.

## FAQ

### Where do I find the method instance IDs?

When editing a Flat Rate method in WooCommerce, look at the URL in your browser.
It will contain `instance_id=123`. Use that number in the plugin settings for the
corresponding rate.

### Does this work with City dropdowns instead of text inputs?

Yes. The included JavaScript listens for changes on both text inputs and dropdowns,
including those enhanced with Select2.

### Can I use this plugin for countries other than Bangladesh?

The plugin’s detection logic is tailored to Bangladesh. It identifies Dhaka using
the ISO 3166‑2 code `BD-13` (or just `13`) and by matching the city name (English
and Bangla). If you wish to adapt the plugin for other locales, you can fork it 
and adjust the `is_destination_dhaka()` method.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“City Based Shipping for Bangladesh” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Md Shorov Abedin ](https://profiles.wordpress.org/iamovk/)

[Translate “City Based Shipping for Bangladesh” into your language.](https://translate.wordpress.org/projects/wp-plugins/city-based-shipping-for-bangladesh)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/city-based-shipping-for-bangladesh/),
check out the [SVN repository](https://plugins.svn.wordpress.org/city-based-shipping-for-bangladesh/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/city-based-shipping-for-bangladesh/)
by [RSS](https://plugins.trac.wordpress.org/log/city-based-shipping-for-bangladesh/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Updated plugin header and slug to match WordPress.org guidelines.
 * Added GPL license header and removed deprecated load_plugin_textdomain() call.
 * Updated Tested up to header to WordPress 6.8.

#### 1.0.0

 * Initial release on WordPress.org.

## Meta

 *  Version **1.0.1**
 *  Last updated **12 mac óll ago**
 *  Active installations **20+**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.8.12**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/city-based-shipping-for-bangladesh/)
 * Tags
 * [Bangladesh](https://rhg.wordpress.org/plugins/tags/bangladesh/)[checkout](https://rhg.wordpress.org/plugins/tags/checkout/)
   [rates](https://rhg.wordpress.org/plugins/tags/rates/)[shipping](https://rhg.wordpress.org/plugins/tags/shipping/)
   [woocommerce](https://rhg.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://rhg.wordpress.org/plugins/city-based-shipping-for-bangladesh/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/city-based-shipping-for-bangladesh/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/city-based-shipping-for-bangladesh/reviews/)

## Contributors

 *   [ Md Shorov Abedin ](https://profiles.wordpress.org/iamovk/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/city-based-shipping-for-bangladesh/)