| 开发者 | gomflo |
|---|---|
| 更新时间 | 2026年9月28日 23:21 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
address_2), relabeled "Colonia" for Mexico. This is the most common convention in Mexican stores: line 1 holds street and number, line 2 holds the colonia. The colonia then shows up with no extra setup in emails, invoices, shipping labels, exports and any integration that reads the standard WooCommerce address.
If you prefer a separate field, choose "Campo propio Colonia" in the settings. It is stored as an additional order field (_wc_billing/postali/colonia and _wc_shipping/postali/colonia, the same format the block checkout uses), and it is added to the formatted Mexican address in the order screen, emails and the thank-you page. Keep in mind that many shipping integrations only read address_2.
Classic checkout and block checkout
[woocommerce_checkout] shortcode): fully supported.wc/store/cart), so the React form and the server see the same values. The colonia dropdown appears right below the postal code field, using the same markup as WooCommerce's own selects. Because the block checkout does not allow replacing its fields, the dropdown is the plugin's own element and writes into Address line 2 (or into the separate "Colonia" field, registered through WooCommerce's additional checkout fields API and shown only for Mexico on WooCommerce 9.9+). If a theme or plugin heavily customizes the block form, state and city autocompletion keep working even if the dropdown cannot be inserted.postali-codigos-postales folder to /wp-content/plugins/, or install it from Plugins > Add New.No. The Postali API is public and free.
The customer sees a notice and fills the address manually. Checkout is never blocked by a network failure, not even with server-side validation enabled.
That is the code WooCommerce uses internally for Ciudad de México ("MX" is Estado de México). The plugin maps SEPOMEX state names to those codes; customers only see the name.
Choose "Otra (escribirla a mano)" and type it. SEPOMEX takes a while to register new developments.
The Postali API also has data for Colombia and Spain, but this version of the plugin only autocompletes Mexican addresses.
Yes. The postali_cp_api_base PHP filter changes the base URL for both the browser lookups and the server-side validation.