| 开发者 | ifritdmc |
|---|---|
| 更新时间 | 2026年11月2日 23:10 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
ES prefix are removed: es b-1234567-4 → B12345674). A correct format does not prove that the ID exists or who it belongs to.ordifolio-tax-id-checkout folder to /wp-content/plugins/, or install the plugin from Plugins → Add New, and activate it.No. No es software de facturación Verifactu, no genera registros de facturación ni envía nada a la AEAT, y no está certificado ni homologado por la AEAT.
Not by default. In the default mode it is required only when the customer ticks «Necesito factura a nombre de empresa/profesional». A full invoice must include the recipient's tax ID (RD 1619/2012, art. 6.1.d); a simplified invoice for a consumer does not.
It checks the structure and the check digit or letter of a Spanish DNI/NIF, NIE or CIF, locally, without any external request. A correct format does not mean that the ID exists, is active or belongs to the customer.
Consulta opcional en VIES (Comisión Europea): indica si el NIF-IVA consta como válido para operaciones intracomunitarias en la fecha de la consulta. No garantiza la identidad del cliente ni el tratamiento fiscal correcto. Many Spanish companies and freelancers are not registered for intra-EU operations (ROI), so "no consta" in VIES is common and does not mean the ID is wrong. That is why the default failure mode is soft: the order goes through and the result is noted on the order. The hard mode blocks the order when VIES says the number is not registered or does not answer.
Only company IDs (CIF) with a correct check digit, and only when you enable the VIES lookup. DNI and NIE (natural persons) are never sent. Results are cached for 24 hours (only the result flags, no names or addresses) so the same CIF is not looked up again.
On the order (_billing_ordifolio_nif_tax_id, with a copy in _ordifolio_nif_tax_id and its type in _ordifolio_nif_tax_id_type; Checkout block orders also keep WooCommerce's own _wc_billing/ordifolio-tax-id-checkout/tax_id) and, for registered customers, in the user meta ordifolio_nif_tax_id. Whether the customer asked for a full invoice is stored as _ordifolio_nif_invoice_request. The VIES result, when used, is stored as _ordifolio_nif_vies_status and _ordifolio_nif_vies_checked_at.
Use Tools → Erase Personal Data. The plugin removes the tax ID saved in the customer's account. To also anonymise it on their orders, enable WooCommerce → Settings → Accounts & Privacy → Remove personal data from orders on request. Tools → Export Personal Data includes it too. If the tax ID is on an invoice you already issued, Spanish tax retention rules may require you to keep it (typically four years); do not erase it from those orders while retention still applies.
Yes, with WooCommerce 8.9 or later. The invoice checkbox appears in the contact section and the NIF/CIF/NIE field in the address form.