BACK TO DIRECTORY

BD Address Fields for WooCommerce

by shofiullah

0.0
(0 ratings)

Bangladeshi stores usually ask customers to type their thana or upazila into a
free text box. Customers spell it differently every time, delivery staff have
to guess, and couriers reject addresses they cannot match.

This plugin replaces that text box with a dropdown. The customer picks a
District, and the Thana / Upazila list updates instantly to show only
the areas inside that district.

Complete, current data

  • All 64 districts, using the official English spellings adopted in 2018:
    Chattogram, Cumilla, Barishal, Jashore and Bogura.
  • 620 thanas and upazilas in total.
  • Metropolitan police thanas are included alongside rural upazilas for Dhaka,
    Chattogram, Khulna, Rajshahi, Sylhet, Gazipur, Narayanganj, Barishal and
    Rangpur. A customer in Mirpur, Uttara, Panchlaish or Sonadanga can select
    their actual area rather than the nearest rural upazila.

Built for real stores

  • Works on the checkout, My Account address forms, and the cart shipping
    calculator.
  • Nothing is preselected. The district field prompts “Please select district”
    and the thana field prompts “Please select district first” until a district
    is chosen, then “Please select thana”.
  • Districts WooCommerce would otherwise prefill from your shop base address or
    IP geolocation are cleared, so a customer outside your own city is never
    quoted the wrong delivery charge because they skimmed past a guessed field.
    A returning customer’s own saved address is left untouched.
  • Declares compatibility with WooCommerce High-Performance Order Storage
    (HPOS) and the Cart and Checkout Blocks features.
  • Adds no database tables, no settings page, and no admin bloat. The data ships
    as plain PHP arrays, so there are no extra queries on the checkout.
  • Around 3 KB of gzipped data is added to the checkout page, loaded only where
    address fields are actually rendered.

Data sources

District and thana names are cross-checked against the Dhaka Metropolitan
Police station directory and public Bangladesh administrative division records.

Credits

This plugin is a derivative work distributed under the GNU General Public
License v2 or later.

  • The states and places architecture, and the cascading select script, come
    from the WC City Select plugin, https://wordpress.org/plugins/wc-city-select/
  • The Bangladesh adaptation, “Thana/Upazila Dropdown for Woocommerce
    [Bangladesh]”, is by Md Rasel Khan,
    https://github.com/immdraselkhan/Thana-Upazila-Dropdown-for-Woocommerce-Bangladesh

Plugin Details

Active Installs
0
Total Downloads
67
Version
1.0.0
Requires WP
6.5
Requires PHP
7.2
Tested Up To
7.1
Added
2026-09-13
Last Updated
2026-09-13 11:09am GMT

Ratings

5
0
4
0
3
0
2
0
1
0