Linux 软件免费装
Banner图

Datos fiscales: NIF, CIF y NIE for WooCommerce

开发者 dozish16
更新时间 2026年11月26日 05:18
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

invoice cif nie nif spain

下载

1.0.0

详情介绍:

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 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 More free tools for Spanish stores

安装:

  1. Install and activate WooCommerce (8.0 or later).
  2. Upload the datos-fiscales-nif-cif-nie folder to /wp-content/plugins/ or install it from "Plugins → Add New".
  3. Activate it.
  4. Go to WooCommerce → Settings → Tax IDs (NIF) and choose the field mode.

屏幕截图:

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

常见问题:

Where can I get help?

Use the support forum of the plugin on WordPress.org or write to soporte.plugins.online@gmail.com.

Does it work with the block checkout?

Yes. It uses WooCommerce's official Additional Checkout Fields API (WooCommerce 8.6 or later). With WooCommerce 8.0 to 8.5 the field only appears in the classic checkout.

Does it check that the NIF exists?

No. It checks the format and the control letter or digit, which catches almost all typing mistakes. It does not query any external database.

When should I make it required?

It depends on your business. Spanish rules (RD 1619/2012, art. 4) allow a simplified invoice without the customer tax ID up to 400 € VAT included, and up to 3,000 € for retail sales to final consumers. Business customers can always ask for a full invoice with their tax ID. The "conditional" mode asks for it from companies and above the amount you choose. Check with your adviser.

Where is the tax ID stored?

In the order, with the meta key _billing_dfnifwc_tax_id, and in the customer profile, with billing_dfnifwc_tax_id. The legal name uses _billing_dfnifwc_company_name and billing_dfnifwc_company_name. PDF invoice plugins can display these custom fields.

What happens if I uninstall the plugin?

Its settings are deleted. Tax IDs stored in orders (fiscal records of your store) and in customer profiles are never deleted.

I am a developer: how do I read the tax ID from another plugin?

With filters that return the default value when this plugin is not active: $nif = apply_filters( 'dfnifwc_order_tax_id', '', $order ); $legal_name = apply_filters( 'dfnifwc_order_company_name', '', $order ); $customer_nif = apply_filters( 'dfnifwc_customer_tax_id', '', $user_id );

更新日志:

1.0.0