Sri Lankan Cities for WooCommerce
Adds Sri Lanka's 25 districts to WooCommerce checkout, suggests cities for the chosen district, and autofills postal codes.
Use with caution
Sri Lankan Cities for WooCommer… works, but test it on a staging site before relying on it in 2026. It runs on 90+ sites, is rated 5/5 and was last updated 5 months ago, and scores 60/100 on our health check.
- Small user base (90+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Sri Lankan Cities for WooCo… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| checkout | >100 |
| districts | #4 |
| postcode | #37 |
| sri lanka | #1 |
| woocommerce | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About Sri Lankan Cities for WooCommerce
From the official readme · v1.0.0Description
WooCommerce ships Sri Lanka with no districts and the State field hidden. This plugin makes checkout work the way Sri Lankan addresses actually work: 101, Main Street, Negombo, Gampaha, 11500, Sri Lanka.
- Adds all 25 districts as a required District dropdown, keyed by ISO 3166-2:LK codes so couriers and shipping plugins interoperate.
- Suggests cities for the selected district while the customer types — 288 verified cities across all 25 districts.
- Autofills the postal code when a known city is picked — still editable, and it never overwrites a code the customer typed themselves.
- Lets you build district-based shipping zones (WooCommerce → Settings → Shipping → Add zone → pick districts).
- Works on both the classic (shortcode) checkout and the block checkout.
Safety and design
- No external services. No data leaves your site, nothing is tracked, no account is needed.
- No AJAX endpoints, no database writes, no extra checkout fields — WooCommerce validates the district server-side automatically.
- Everything fails safe: without WooCommerce the plugin does nothing; with JavaScript blocked, the district dropdown still works and city/postcode are normal manual fields.
- Block-checkout updates go through WooCommerce’s official wp.data store API.
Data provenance
Every autofilled postal code was verified against Sri Lanka Post and independent directories (July 2026). Cities whose codes could not be fully verified are left out — for those, the city field simply works as a plain text box.
Installation
- Install and activate from Plugins → Add New Plugin (or upload the zip via Upload Plugin).
- WooCommerce 8.9 or newer must be active.
- Done — districts, city suggestions and postcode autofill work immediately on checkout. The plugin has no settings page of its own; the Settings link on the Plugins screen takes you to WooCommerce’s shipping settings, where the districts appear as zone regions.
Upgrading from the code-snippet version: if you previously installed this as a snippet (FluentSnippets, a child theme’s functions.php, or an mu-plugin file), remove that copy BEFORE activating the plugin. Both loaded at once causes a duplicate-function PHP error.
Changelog
If you used the old code-snippet version, remove the snippet before activating the plugin — both at once causes a duplicate-function error.
1.0.0
- Initial release: 25 districts at checkout, 288-city suggestions, postcode autofill, district shipping zones, classic + block checkout.
Screenshots
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Sri Lankan Cities for WooComm… alternatives
All checkout plugins →FAQ
Sri Lankan Cities for WooCommerce: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Sri Lankan Cities for WooCommer… free?
Yes. Sri Lankan Cities for WooCommer… is free to download and use from the official WordPress.org plugin directory.
Is Sri Lankan Cities for WooCommer… safe to use in 2026?
Sri Lankan Cities for WooCommer… works, but test it on a staging site before relying on it in 2026. It runs on 90+ sites, is rated 5/5 and was last updated 5 months ago, and scores 60/100 on our health check.
How many websites use Sri Lankan Cities for WooCommer…?
Sri Lankan Cities for WooCommer… is active on 90+ WordPress websites and has been downloaded 638 times since it launched in July 2026. It was downloaded 182 times in the last 30 days.
Does Sri Lankan Cities for WooCommer… work with WordPress 7.1?
Sri Lankan Cities for WooCommer… is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Sri Lankan Cities for WooCommer… need?
Sri Lankan Cities for WooCommer… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Sri Lankan Cities for WooCommer… last updated?
The latest version, 1.0.0, was released on July 3, 2026 (5 months ago).
Who makes Sri Lankan Cities for WooCommer…?
Sri Lankan Cities for WooCommer… is developed and maintained by Thushara Lakshan.
What are the best alternatives to Sri Lankan Cities for WooCommer…?
The most popular alternatives to Sri Lankan Cities for WooCommer… are Brazilian Market on WooComm… (60K+ installs), reCAPTCHA for WooCommerce (40K+ installs) and FunnelKit (30K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
