Datos Fiscales CFDI for WooCommerce
Collect and validate Mexican CFDI 4.0 e-invoice data at WooCommerce checkout: RFC, legal name, tax regime, ZIP code and CFDI use.
Install in
Customers in Mexico often need an electronic invoice (CFDI) for their purchases. This plugin adds an “I need an invoice (CFDI)” checkbox to the WooCommerce checkout. When the customer ticks it, the plugin asks for the five fields required by CFDI 4.0 and validates them with the SAT rules:
- RFC (tax ID): checks the structure and the embedded date, detects individuals (13 characters) and companies (12), and rejects the generic RFC.
- Legal name: converted to upper case and without the corporate suffix (“S.A. de C.V.”), as the SAT requires.
- Tax regime (c_RegimenFiscal catalog), checked against the type of taxpayer.
- Tax ZIP code (5 digits).
- CFDI use (c_UsoCFDI catalog), checked against the regime (for example, personal deductions are only valid for individuals).
The data is shown on the order screen, in an “Invoice” column of the orders list, in order emails and in My Account. From WooCommerce Datos fiscales CFDI the store can download a CSV with every order that requested an invoice in a date range, ready to be stamped in any invoicing system.
Works with the block checkout (default) and the classic checkout, and is compatible with High-Performance Order Storage (HPOS). Registered customers get their tax data pre-filled from their last purchase.
The user interface is in Spanish, because it is meant for stores in Mexico.
Privacy
The plugin does not send any data to external services. Tax data is stored in the order and, for registered customers, in their user profile.
Written by Joobi from the project's own listing. See the source page
0.2.2
- Security: CSV export neutralizes values that start with =, +, -, @ so spreadsheet apps do not run them as formulas.
0.2.1
- Readme: screenshots and a short summary in Spanish.
- Fix: no PHP deprecation notice when exporting the CSV on PHP 8.4 and later.
- Tested with WooCommerce 11.3.
0.2.0
- Settings page: information box about the optional Pro version (hidden when Pro is active).
- Validation: the CFDI use is now checked against the full tax-regime table of the SAT catalog (catCFDI 4.0, November 2026), so combinations the SAT rejects when stamping (for example regime 608 with G03) are caught at checkout.
- Fix: regime 622 is only for companies (persona moral), as in the SAT catalog.
- Fix: tax data now shows on the thank-you page with block themes.
- Fix: tax data in plain-text emails.
- Fix: with data from a previous purchase, the “I need an invoice” box comes checked so the block checkout keeps the prefilled values.
- Fix: classic checkout show/hide script works with block themes.
- Text domain now matches the WordPress.org slug (datos-fiscales-cfdi-for-woocommerce), so translations can be delivered.
0.1.0
- First release.
0.2.0
- Settings page: information box about the optional Pro version (hidden when Pro is active).
- Validation: the CFDI use is now checked against the full tax-regime table of the SAT catalog (catCFDI 4.0, November 2026), so combinations the SAT rejects when stamping (for example regime 608 with G03) are caught at checkout.
- Fix: regime 622 is only for companies (persona moral), as in the SAT catalog.
- Fix: tax data now shows on the thank-you page with block themes.
- Fix: tax data in plain-text emails.
- Fix: with data from a previous purchase, the “I need an invoice” box comes checked so the block checkout keeps the prefilled values.
- Fix: classic checkout show/hide script works with block themes.
- Text domain now matches the WordPress.org slug (datos-fiscales-cfdi-for-woocommerce), so translations can be delivered.
0.1.0
- First release.
Follow this listing's changes (Atom feed)