The ward picker turns WooCommerce’s free-text “city” field into a searchable list of the wards, communes and special zones of the chosen province.
How it works
- The list follows the Province / City field: change the province and the list changes with it.
- Typing without accents works:
ben thanhfinds Phường Bến Thành. A 5-digit code works too. - It is keyboard friendly: arrow keys move through the list and Enter picks a ward.
- WooCommerce’s own input stays in place, so autofill, the block checkout and other checkout plugins keep working. The chosen name is written back into that input.
Where it appears
Block checkout and cart, classic checkout, the cart shipping calculator and My Account → Addresses — for both billing and shipping, whenever the country is Vietnam.
To load it on other pages, return true from the vafw_load_picker filter; to use it on a form that is not WooCommerce’s, see Picker on any form.
Turn it off
Untick Ward picker in Settings → Vietnam Address. Customers then type the ward by hand, and validation still checks it on the server.
The list is loaded from your own site (one small JSON file per province). Nothing is requested from another server.