跳到内容

Datos fiscales: NIF, CIF y NIE for WooCommerce

v1.0.0

dozish16 · 2026年11月25日 上架

Adds a validated Spanish tax ID field (NIF, CIF or NIE, with control letter and digit check) to the WooCommerce checkout.

正在使用
10 以下
评分
暂无
累计下载
35
最近更新
2026年11月26日
需要 WordPress 6.4+已测试到 7.1.5PHP 7.4+

贡献者

截图

NIF/CIF/NIE field in the block checkout.
NIF/CIF/NIE field in the block checkout.
Error message when the control letter does not match.
Error message when the control letter does not match.
Field in the classic checkout.
Field in the classic checkout.
Settings in WooCommerce → Settings → Tax IDs (NIF).
Settings in WooCommerce → Settings → Tax IDs (NIF).
Tax ID in the admin order screen.
Tax ID in the admin order screen.
Tax ID in the order e-mail.
Tax ID in the order e-mail.

Datos fiscales: NIF, CIF y NIE adds the data you need to issue full invoices to Spanish customers: the NIF, NIE or CIF, properly validated, not just “9 characters long”.

Features

  • Adds a NIF/CIF/NIE field to the block checkout (the default in new stores) and to the classic checkout.
  • Validates the control letter or digit:
    • NIF (DNI): 8 digits and a letter (modulo 23). Special NIFs K, L and M too.
    • NIE: X, Y or Z, 7 digits and a letter.
    • CIF: entity letter, 7 digits and control (digit or letter depending on the entity type).
  • Accepts lowercase, spaces, dots and hyphens (12.345.678-z) and stores the clean value (12345678Z).
  • Three modes: optional, required or conditional (required when the customer fills in “Company” or when the order is above an amount; 400 € by default, the general simplified-invoice limit; retail stores may use up to 3,000 €; editable).
  • Spanish rules only apply to customers billed in Spain: customers billed in another country are never asked for the field and can type their own tax ID in any format.
  • Optional legal name (razón social) field.
  • Option to accept EU VAT numbers from other EU countries (basic format check only; numbers with the ES prefix are fully validated).
  • Saves the value in the order and in the customer profile, and pre-fills it on later purchases.
  • Shows it in the admin order screen (editable), WooCommerce e-mails, the thank-you page and My Account.
  • Compatible with HPOS (high-performance order storage).
  • In every language of Spain: Spanish, Catalan, Valencian, Galician, Basque, Aranese and Aragonese. Each user sees the admin in the language of their profile (Users Profile Language); customers see the language of the site.
  • Free, with no locked features.

Legal notice

This tool helps you apply taxes in WooCommerce, but it does not replace the advice of a tax adviser. Review the settings with your adviser.

Privacy

  • The plugin does not send data to third parties: no external services, no telemetry, no usage tracking.
  • The tax ID is stored only in your database, in the order and in the customer profile.
  • It is included in the WordPress personal data export, removed when you erase a customer’s personal data, and deleted from orders that WooCommerce anonymizes (only if you enable that in WooCommerce). The plugin also suggests a paragraph for your privacy policy (Settings Privacy).
  • Validation runs on your server with the official control letter/digit algorithm. It does not query the Spanish Tax Agency or VIES, so it does not check that the number exists or who it belongs to.

More free tools for Spanish stores

  • Recargo de Equivalencia for WooCommerce.
  • Canarias, Ceuta y Melilla (IGIC and IPSI) for WooCommerce.
  • Exportación para la gestoría for WooCommerce (sales invoice book and tax summary).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums