| 开发者 |
yoohw
baonguyen0310 |
|---|---|
| 更新时间 | 2026年10月4日 12:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
state field and ward/commune codes in its city field. It validates address combinations and hides the postcode when appropriate.
The fields appear at checkout, in My Account and the cart, and in store, customer, and order addresses. In Cart and Checkout Blocks, the Ward/Commune list follows the selected Province/City through the Store API, including on custom block pages.
Payments, VietQR and Reconciliation
VietQR extends WooCommerce Direct bank transfer (bacs) using configured bank-transfer accounts; it does not create a new gateway. Bank accounts and transfer content stay in WooCommerce's native React bank-transfer settings. Extended VietQR controls are under Vietnam store > Dashboard. QR images and transfer details can appear on order confirmation, in My Account, in emails, and in wp-admin. VietQR does not confirm bank transactions or mark an order paid.
Payment reconciliation is disabled by default and can be enabled under Vietnam store > Dashboard > Core features. Disabling it blocks new manual and external reconciliation writes while preserving existing history as read-only. When enabled, staff can record transfer observations and references, then manually reconcile an exact order amount on the order screen. Payment Reconciliation retains evidence, history, and corrections. It does not complete WooCommerce payments, set a paid date or transaction ID, issue refunds, or change stock.
Optional PayPal VND-to-USD conversion requires a compatible WooCommerce PayPal Payments setup and a merchant-entered VND-per-USD rate. The rate is locked for each payment attempt while the WooCommerce order remains in VND. Compatibility checks prevent conversion when the supported payment path is unavailable; this is not a general currency switcher.
VAT Requests and Electronic Invoices
When enabled under Vietnam store > Core features, Classic Checkout and Checkout Blocks can collect company, tax, invoice email, and company address details. This is independent of WooCommerce tax calculation.
The provider-neutral Electronic Invoice Handoff tracks status, provider references, document history, PDF/XML files, and customer email handling. The plugin does not issue a legal electronic invoice or call an invoice provider API; issuance remains with your provider.
Shipping Fees and Order Tracking
Native WooCommerce Shipping Zones can be narrowed to one or more Vietnamese wards/communes from the built-in Zone regions tree, where each ward/commune is a child of its province/city. Ward restrictions apply to every shipping method in that zone and work together with the zone's country, province/city, and postcode regions. WooCommerce checks zones in their configured order, so place ward-specific zones above broader fallback zones.
Deactivating the plugin removes ward narrowing: mixed zones fall back to their native country, province/city, continent, and postcode regions, while ward-only zones stop matching until the plugin is active again. Toggling the separate Vietnamese address-field feature does not delete or disable saved ward restrictions.
The “Shipping Fee Rules” method works within WooCommerce Shipping Zones. Rules are evaluated from top to bottom and can be based on province/city, ward/commune, cart total, weight, shipping class, fee, free-shipping threshold, and COD. The editor supports sorting and UTF-8 CSV import/export.
The Shipping panel lets staff enter a carrier, tracking number, and tracking URL, send an email, and maintain a customer-facing timeline. Updates belong to the current shipment; stale actions from a replaced or cancelled shipment are rejected. Core manual tracking needs no carrier API. URL templates can create tracking links from {tracking_code}.
Add the “Order Tracking” block or [yoohw_order_tracking] shortcode to let customers look up orders using the order number together with their billing email address or phone number. Results do not display addresses, products, totals, or contact details.
Order Management and Store Health
The WooCommerce > Orders screen has a compact Information column, relevant filters and bulk actions, and CSV exports. Staff can manage shipment and invoice handoffs there; Payment Reconciliation stays on the order screen. These tools support HPOS and legacy order storage.
Store Health shows configuration readiness and lets staff explicitly scan legacy data. Opening it does not scan or migrate orders or customers. Migration starts only after a merchant action: scan, review the report, back up data, then synchronize compatible data in batches. Ambiguous data requires manual review.
Migration and Data
Migration tools support compatible legacy addresses and GHTK tracking data from Le Van Toan's plugin. Review the scan report before synchronizing.
The 2026-07 administrative dataset is based on the National Statistics Office of Viet Nam through Vietnam Provinces API v2. The bank and BIN lists are based on the VietQR bank list API. Sources and update procedures are documented in data/SOURCES.md.
External Services and Privacy
Source APIs are used only to build static data; the plugin does not call them at runtime. When VietQR is enabled, the browser or email client loads the QR image from VietQR.io by CASSO. The image URL may contain the BIN, account number, QR template, amount, transfer description, and account holder name.
Yes. The plugin supports Province/City and Ward/Commune fields, VAT invoices, phone number validation, VietQR, and shipping information. WooCommerce 8.9 or later is required.
Province/city codes are stored in WooCommerce's state field; ward/commune/special-zone codes are stored in its city field.
Yes, when “Accept invoice requests at checkout” is enabled under Vietnam store > Core features.
No. VietQR is added to Direct bank transfer but does not connect to bank transactions.
No. It records and reconciles payment evidence without completing the WooCommerce payment or changing its paid state.
No. The order remains in VND; a compatible PayPal payment attempt uses the guarded USD conversion path.
No. Opening Store Health is safe; scanning and migration each require an explicit merchant action.
Go to WooCommerce > Settings > Shipping and open a zone. In the native Zone regions tree, expand Vietnam and a Province / City, then select one or more Ward / Commune children to restrict every method in that zone. To calculate different fees with additional cart or product conditions, add “Shipping Fee Rules” to the zone.
Add the “Order Tracking” block or [yoohw_order_tracking] shortcode to a page.
No. The public release provides API-free tracking and a framework for custom connectors.
Yes. The plugin is HPOS-compatible and includes Vietnamese translations for the interface, emails, and validation messages.
changelog.txt for the complete change history.