Postali — Códigos postales de México
Your customers type their postal code (código postal) and the WooCommerce checkout fills in the state , the city or municipality , and shows a dropdown with every colonia (neighborhood) for that postal code. Fewer typos, fewer parcels returned for incomplete addresses. The data comes from the offici
Your customers type their postal code (código postal) and the WooCommerce checkout fills in the state , the city or municipality , and shows a dropdown with every colonia (neighborhood) for that postal code. Fewer typos, fewer parcels returned for incomplete addresses.
The data comes from the official SEPOMEX catalog (Correos de México), served by the free public Postali API : no signup, no API key, no quotas.
The plugin interface is in Spanish, since it is built for stores that sell in Mexico.
Features
- When the country is Mexico and the customer types a 5-digit postal code, it fills the state (using WooCommerce’s state codes), the city (municipality or alcaldía) and turns the colonia field into a dropdown.
- If the postal code has a single colonia, it is selected automatically.
- An “Otra (escribirla a mano)” option lets customers type a colonia that is not in SEPOMEX yet. Every field can still be edited by hand.
- Works for billing and shipping, and on My Account > Addresses .
- If the API is unreachable or the postal code does not exist, the customer sees a short message and fills the address manually. A network failure never blocks checkout.
- Per-session browser cache, so the same postal code is not requested twice.
- Optional server-side validation : when the order is placed, reject postal codes that do not exist or that do not match the selected state. Results are cached for a week. If the API does not answer, the order goes through.
- Optionally moves the postal code field before the street fields for Mexico, so customers type it first.
- Compatible with HPOS (High-Performance Order Storage).
Where the colonia is stored
By default, in Address line 2 ( 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 .