Linux 软件免费装
Banner图

Ordifolio Tax ID Checkout for WooCommerce

开发者 ifritdmc
更新时间 2026年11月2日 23:10
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

checkout vies cif nif spain

下载

0.1.0

详情介绍:

Ordifolio Tax ID Checkout for WooCommerce (Spanish UI: NIF/CIF en checkout para WooCommerce) adds a «NIF / CIF / NIE» field to the WooCommerce checkout so Spanish shops can collect the customer's tax ID when a full invoice (factura completa) is needed. Language: the plugin is meant for shops in Spain, so its interface strings are written in Spanish. They are translatable. What this plugin is not: it does not issue invoices, does not create e-invoices or any tax records, and does not send anything to the Spanish Tax Agency (AEAT). It only collects and stores the tax ID your invoicing tool needs.

安装:

  1. Install and activate WooCommerce (8.3 or later).
  2. Upload the ordifolio-tax-id-checkout folder to /wp-content/plugins/, or install the plugin from Plugins → Add New, and activate it.
  3. Go to WooCommerce → Settings → NIF/CIF checkout and review the options:
  4. Cuándo es obligatorio (when the field is required). Default: only when the customer ticks «Necesito factura a nombre de empresa/profesional».
  5. Consultar VIES (off by default). If you enable it, update your privacy policy (see Privacy below).
  6. Place a test order with the classic checkout or the Checkout block.
The Checkout block integration needs WooCommerce 8.9 or later (Additional Checkout Fields API). With WooCommerce 8.3–8.8 the plugin works with the classic checkout only.

屏幕截图:

  • Classic checkout: invoice checkbox, NIF/CIF/NIE field and legal text.
  • Order screen: tax ID, invoice request and the dated VIES result (here: «no consta»).

升级注意事项:

0.1.0 First version.

常见问题:

¿Es software Verifactu?

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.

Is the field required?

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.

What does the format check do?

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.

What does the VIES lookup tell me?

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.

Which IDs are sent to VIES?

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.

Where is the tax ID stored?

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.

How do I erase a customer's tax ID?

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.

Does it work with the Checkout block?

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.

更新日志:

0.1.0