| 开发者 | vnwooplugins |
|---|---|
| 更新时间 | 2026年10月7日 11:07 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-3.0-or-later |
| 版权网址: | 版权信息 |
state field: 34 entries.city field, filtered by the selected province. The ward name is stored, so addresses stay readable in emails, exports and other plugins.0xxxxxxxxx.[woocommerce_checkout] shortcode,_vnck_legacy_address, and lists the addresses that need a manual fix (for example, an old ward split between several new wards). WP-CLI: wp vnck migrate-legacy [--apply].
Tiếng Việt: Plugin thay ô địa chỉ của WooCommerce bằng 2 ô chọn Tỉnh/Thành phố → Xã/Phường/Đặc khu (34 tỉnh, 3.321 xã theo đơn vị hành chính từ 01/07/2025), ẩn mã bưu chính, kiểm số điện thoại Việt Nam. Dùng được với Checkout Block, checkout cổ điển, Tài khoản > Địa chỉ, màn sửa đơn trong admin, HPOS.
Data
Administrative units are bundled in data/vn-units.json (source: provinces.open-api.vn API v2, see data/SOURCE.md). The plugin makes no external requests: the browser loads the JSON file from your own site.
Credits and data sources
data/SOURCE.md.data/legacy-map.json) also uses data from the plugin "Vietnam Checkout for WooCommerce" (woo-vietnam-checkout) 2.1.6 (GPL), and the old-ward mapping of the same API.LICENSE file.vietaddr folder to /wp-content/plugins/ or install the zip from Plugins > Add New.The block keeps the core fields. Province is the core state dropdown. For the ward, a small script places a dropdown over the core city field and writes the value through the WooCommerce Blocks data store. The server checks again when the order is placed, so an invalid ward or phone is rejected even without JavaScript.
Yes, with the vnck_phone_pattern filter (PHP regular expression applied to the normalized number).
Version 0.1.0 stored ward codes. They are still accepted and shown as ward names; the migration tool converts them to names.
The plugin creates no options or transients. Deleting it from Plugins (uninstall) removes only the user meta _vnck_legacy_address, the backup written by the migration tool. Customer and order addresses (WooCommerce billing/shipping fields) are kept. Deactivating the plugin removes nothing.
vietaddr).vietaddr, translation template languages/vietaddr.pot._vnck_legacy_address.