OneStudio Vietnam Address for WooCommerce
Integrates the latest Vietnamese administrative addresses into WooCommerce.
Install in
OneStudio Vietnam Address for WooCommerce integrates the Vietnamese administrative address system into the WooCommerce checkout form. All Province/City, District, and Ward data is bundled with the plugin – no API key required, no dependency on an external service, no risk of interruption.
This is an independent plugin, not affiliated with, endorsed by, or sponsored by WooCommerce or Automattic. WooCommerce is a trademark of Automattic Inc.
Key features
- Vietnamese address integration: Replaces or extends WooCommerce’s default address fields with the Province/City – District – Ward system
- Supports both structures:
- Old structure (before 1 July 2025): 63 provinces with 3 levels (Province – District – Ward)
- New structure (after 1 July 2025): 34 provinces with 2 levels (Province – Ward)
- Both Classic Checkout and Block Checkout supported: see “Block Checkout support” below
- Searchable dropdowns: Province/City, District, and Ward fields are searchable (type to filter) on Classic Checkout, using the Select2 library already bundled with WooCommerce – toggleable in settings if it ever conflicts with a theme
- Bundled data: The full list of Provinces/Cities, Districts, and Wards (both structures) ships inside the plugin – works immediately after installation, no external API calls, no internet connection or API key required
- Optional data server: By default the plugin uses only its bundled data and makes no outside requests. To receive administrative changes without waiting for a plugin update, you can point it at a data server you run (the server is open source). If that server is unreachable, the plugin falls back to the bundled data, so checkout is never interrupted
- Automatic conversion: Converts existing orders from the old address structure to the new one, using a bundled conversion table
- Friendly interface: A complete, easy-to-use settings page inside WooCommerce Admin
- Admin display: View detailed address information on the order edit screen
Requirements
- WordPress 5.8 or later
- WooCommerce 5.0 or later
- PHP 7.4 or later
Block Checkout support
The plugin supports both Classic Checkout (shortcode) and Block Checkout (the default for new stores since WooCommerce 8.3+):
- Classic Checkout: full support for both address structures (new: Province/City Ward, and old: Province/City District Ward).
- Block Checkout: new structure only (Province/City Ward) with a real-time ward-search autocomplete field. Requires WooCommerce 8.9 or later. The old structure (with District) is currently only available on Classic Checkout.
If your WooCommerce version is older than 8.9 and you’re using Block Checkout, the plugin shows a notice in the admin area, and you can enable “Cart and checkout shortcodes” under WooCommerce > Settings > Advanced > Features to switch to Classic Checkout.
Languages
Vietnamese and English are supported out of the box. When your site language is set to Tiếng Việt, WordPress installs and updates the Vietnamese translation automatically, with nothing to configure. Translations into other languages are welcome at https://translate.wordpress.org/projects/wp-plugins/onestudio-vietnam-address-for-woocommerce/
Usage
- Install and activate the plugin
- Go to WooCommerce > Vietnam Address
- Choose the default address structure (new or old)
- To convert existing orders, scroll to the “Old-to-new address conversion tool” section and click “Convert Now”
External services
By default this plugin connects to no external service: all address data is bundled with it.
It only connects to a server if a site administrator enters one in the “API Server” setting, normally a copy of the open-source data server (https://github.com/onestudiovn/onestudio-vietnam-address-api-server) that they run themselves. The plugin then fetches Vietnamese administrative address data (provinces, wards, and old-to-new mapping tables) from that server so administrative changes arrive without a plugin update.
What is sent: only administrative lookup codes (e.g. a province or ward code) as GET request query parameters. No personal data, customer information, or order data is ever sent.
When it is used: when a customer loads the checkout page (to look up province/ward lists for the address fields), when the administrator clicks “Test Connection” on the plugin’s settings page, and via a background cache-warming job that runs shortly after the API Server setting is saved.
If the configured server is unreachable, the plugin falls back to the bundled data, so checkout is never interrupted. The plugin author operates no data server of its own.
Support
Please use the plugin’s support forum on WordPress.org: https://wordpress.org/support/plugin/onestudio-vietnam-address-for-woocommerce/
Credits
- Developed by OneStudio (https://github.com/onestudiovn)
- Vietnamese administrative address data provided by VietMap (https://github.com/vietmap-company/vietnam_administrative_address), used under the VietMap Administrative Data License
- Built for WooCommerce
Written by Joobi from the project's own listing. See the source page
1.1.7
- Fixed the Province/City and Ward dropdowns being rebuilt after every checkout refresh. A dropdown the customer had open closed, keyboard focus was lost, and what they typed next (for example the street address right after picking a ward) went nowhere. Each refresh also bound the field events again, so every province change sent one more request than the last. Fields are now only rebuilt if a theme or plugin actually re-rendered them
- Fixed picking a Province/City, District or Ward with the keyboard (type to search, then Enter) on Classic Checkout after switching between the old and new address structures: the pick did not register and the browser console showed a JavaScript error. A replaced dropdown could reopen itself on Space or Enter typed elsewhere on the page
- Checkout fields no longer get fixed 48% widths from the plugin’s stylesheet and inline styles. They use WooCommerce’s own form-row-first/form-row-last/form-row-wide classes, so themes that lay out the checkout in a grid no longer show them squeezed into a quarter of the form
- The plugin no longer has a default data server and makes no outside requests unless an administrator enters a server address. The onestudio.vn domain behind the previous default no longer exists. Sites where an older version saved
https://api.onestudio.vn(or, before 1.1.6,https://api.jungdev.com) switch to the bundled data automatically on update; any other address is kept. A blank “API Server” field now really means bundled data only, as the readme always said - Plugin URI, Author URI and the settings page’s “Learn more”, “Contact Support” and “Website” links now point to WordPress.org and GitHub instead of onestudio.vn
1.1.6
- Renamed the plugin to “OneStudio Vietnam Address for WooCommerce” and updated the slug/Text Domain to
onestudio-vietnam-address-for-woocommerce, per WordPress.org plugin review feedback that the previous name was too generic/descriptive to be sufficiently distinctive in the directory (an initial “OneWPStudio” choice was also rejected by the automated checker for containing the restricted term “wp”) - Updated the Author/Author URI to OneStudio / https://onestudio.vn to match the new plugin identity
- Fixed the “Tested up to” header, which had fallen behind the current WordPress version
- Fixed the Contributors field, which listed a username that didn’t match the actual WordPress.org account for this plugin
- Scoped the Block Checkout compatibility notice to this plugin’s settings page and the WooCommerce settings/Plugins screens only, instead of showing on every admin page
- Limited the “WooCommerce is required” admin notice to users who can actually act on it (install/activate plugins), instead of showing it to every logged-in admin user on every screen
- Moved translation loading from the
plugins_loadedhook toinit, per WordPress 6.7+ guidance (calling translation functions beforeinitnow triggers a_doing_it_wrong()notice) - The WordPress.org submission package no longer bundles compiled .po/.mo translation files (WordPress.org generates and serves these automatically via translate.wordpress.org); the .pot template is still included. The GitHub-distributed version is unaffected and still ships with all bundled translations
1.1.5
- Fixed a critical text domain mismatch: this plugin was renamed to “Vietnam Address for WooCommerce” in 1.1.0, but its Text Domain and translation files were never updated to match – WordPress.org derives the plugin’s slug from the Plugin Name, which would have been
vietnam-address-for-woocommerce, not thevn-address-for-woocommerceused everywhere in the code since. All translation calls, the Text Domain header, and the language files (.po/.mo/.pot) are now renamed tovietnam-address-for-woocommerceto match. This is required for translations to work correctly once hosted on WordPress.org - Fixed stale
Project-Id-VersionandX-Domainheaders in the language files, left over from the very first 1.0.0 release under the old plugin name
1.1.4
- Fixed uninstall.php not removing the “Searchable Dropdowns” setting, left over from a plugin uninstall
- Removed two unused converter methods left over from an earlier version of the admin UI (no behavior change – they were never called from anywhere)
- Final pre-submission code review: fresh pass with the official Plugin Check tool, full manual read-through of every file for escaping/sanitization/nonces, and a check for leftover debug code – none found beyond what’s already fixed above
1.1.3
- Added searchable dropdowns (type to filter) for Province/City, District, and Ward on Classic Checkout, using Select2 already bundled with WooCommerce – no extra scripts loaded. New setting to turn this off if it ever conflicts with a theme
- Fixed a real Block Checkout display bug: on stores where the default country isn’t Vietnam, WooCommerce’s own Country/State/City/Postcode fields weren’t being hidden and visibly overlapped this plugin’s own Province/Ward fields. These are now always hidden regardless of the store’s configured country
- Fixed the Ward field on Block Checkout showing two overlapping pieces of text (its own label plus a redundant placeholder) in the empty state
- Removed INSTALLATION.md – its content was already duplicated (and, in a few places, outdated) in this readme’s Installation and FAQ sections
- Verified checkout rendering across 10 of the most-used free WooCommerce themes (Storefront, Astra, OceanWP, GeneratePress, Neve, Kadence, Hello Elementor, Blocksy, Woostify, Sydney), on both Classic and Block Checkout and both address structures
1.1.2
- Fixed the “Convert Now” button staying stuck on “Converting…” after a conversion finished
- Address conversion now runs in small batches (50 orders per request) instead of one single request, so stores with a very large number of orders can no longer hit a PHP timeout or memory limit during conversion; the progress bar now reflects real progress instead of a simulated animation
- Fixed orders that can’t be matched to a new ward being re-processed on every conversion run instead of being marked as a final “failed” state
- Fixed several WordPress.org plugin-guideline items: missing output escaping, missing input unslashing, missing sanitization callback on a registered setting, and a few code-quality warnings from the official Plugin Check tool
- readme.txt is now written in English (WordPress.org’s directory-wide requirement since July 2025); the plugin’s own admin interface is unaffected and still defaults to Vietnamese
1.1.1
- Fixed the “API Server” field showing empty for some customers (it displayed a placeholder instead of the actual value in use), which made “Test Connection” fail with a confusing error; it now always shows the value actually in use, defaulting to the plugin’s own server
- Removed the “Enable Conversion” checkbox and its separate Save Settings step – the address conversion tool is now always available with a single “Convert Now” button
- The plugin no longer automatically contacts the API Server immediately on activation; it only connects once an administrator actively saves settings, clicks “Test Connection”, or a customer actually visits checkout
- Added an “External services” section to the readme describing exactly what data is sent and when
- Added uninstall.php to clean up options, cache, and the scheduled cron event when the plugin is uninstalled
- Removed leftover console.log/console.error debug statements from the checkout script
- Updated the Vietnamese admin text per user feedback
1.1.0
- Renamed the plugin to “Vietnam Address for WooCommerce”
- Added a “Settings” link directly on the Plugins list screen
- API Server: defaults to https://api.jungdev.com, automatically warms the cache on activation or when the server is changed (runs in the background, non-blocking)
- Address conversion tool: switched entirely to local data, no more network calls during bulk conversion, even with an API Server configured
- Added a note about the VietMap data source and self-hosting instructions directly on the settings page
- Updated the Vietnamese admin text
1.0.0
- Initial release
- Vietnamese administrative address integration with bundled data, no API key required
- Support for both address structures (old and new)
- Classic Checkout and Block Checkout support
- Automatic address conversion using a bundled conversion table
- Full admin settings page
- Multilingual: English (default), Vietnamese, Français, Deutsch, 日本語
- HPOS (High-Performance Order Storage) compatible
Follow this listing's changes (Atom feed)