Title: Polmichael Recargo de Equivalencia y NIF/CIF for WooCommerce
Author: polmichael
Published: <strong>November 29, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://ps.w.org/polmichael-recargo-equivalencia-for-woocommerce/assets/banner-
772x250.png?rev=3833020)

![](https://ps.w.org/polmichael-recargo-equivalencia-for-woocommerce/assets/icon-
256x256.png?rev=3833020)

# Polmichael Recargo de Equivalencia y NIF/CIF for WooCommerce

 By [polmichael](https://profiles.wordpress.org/polmichael/)

[Download](https://downloads.wordpress.org/plugin/polmichael-recargo-equivalencia-for-woocommerce.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/polmichael-recargo-equivalencia-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/polmichael-recargo-equivalencia-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/polmichael-recargo-equivalencia-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/polmichael-recargo-equivalencia-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/polmichael-recargo-equivalencia-for-woocommerce/)

## Description

**Polmichael Recargo de Equivalencia y NIF/CIF for WooCommerce** provides clean,
lightweight, and 100% **HPOS (`custom_order_tables`)** and **Checkout Blocks (`cart_checkout_blocks`)**
compatible Spanish B2B tax management for WooCommerce stores selling in Spain.

Designed specifically for Spanish wholesale and B2B/B2C hybrid stores, it automates
the mandatory **Recargo de Equivalencia** VAT surcharge for retail merchants (_comerciantes
minoristas autónomos_) and adds official algorithmic verification for Spanish tax
identification numbers (**NIF, DNI, NIE, and CIF**).

### Key Free Features

 * **Dedicated “Minorista con Recargo de Equivalencia” Role:** Automatically registers
   the `rfes_minorista_re` customer role and allows assigning **Recargo de Equivalencia**
   to any WordPress role or individual customer profile.
 * **Exact Post-Coupon Net Base Calculation:** Calculates the Spanish **Recargo 
   de Equivalencia** (`+5.2%` on the general `21%` IVA rate) strictly on the post-
   discount net taxable base without distorting product base prices on stores configured
   with _“Prices entered with tax”_.
 * **Automatic Spanish Geographic Tax Filter:** Ensures **Recargo de Equivalencia**
   is only applied when the customer’s tax address is in **Spain (`ES` — Peninsula
   and Balearic Islands)**, automatically excluding the Canary Islands (`TF`, `GC`),
   Ceuta (`CE`), and Melilla (`ML`) where IGIC/IPSI apply.
 * **Official Algorithmic NIF, DNI, NIE & CIF Validation (Orden EHA/451/2008):**
    - Validates Modulo 23 check letters for Spanish **DNI / NIF** and **NIE** (`
      X`, `Y`, `Z`), special personal NIFs (`K`, `L`, `M`), and even/odd checksum
      digits and letters for corporate **CIF** numbers (`A-H, J, N, P-S, U, V, W`).
    - **Article 149 Spanish VAT Law (LIVA) Protection:** Prevents applying **Recargo
      de Equivalencia** when a customer enters a corporate entity **CIF** (_Sociedad
      Limitada S.L._ or _Sociedad Anónima S.A._), reserving the regime for individual
      retail merchants (_autónomos_) and _Comunidades de Bienes_ (`E`, `J`).
 * **Native Support for Both Checkout Blocks & Classic Checkout:** Uses WooCommerce’s
   native Additional Checkout Fields API (`woocommerce_register_additional_checkout_field`)
   on Checkout Blocks and standard billing fields on Classic Checkout.
 * **100% Native WooCommerce HPOS Storage:** Persists `_rfes_tax_id`, `_rfes_fiscal_regime`,
   and `_rfes_breakdown` exclusively through the `WC_Order` CRUD API (`$order->update_meta_data()`
   and `$order->get_meta()`).

### Optional Pro Add-on Features

For stores and agencies needing live customer self-selection at checkout, multi-
rate tax brackets, and professional **IRPF** withholding:

 * **Live Fiscal Regime Selector in Checkout Blocks (React Inner Block) & Classic
   Checkout:** Customers can select _Particular_, _Empresa / Autónomo_, _Minorista
   con Recargo de Equivalencia_, or _Profesional con Retención IRPF_ directly during
   checkout with instant `extensionCartUpdate` cart recalculation.
 * **Multi-Rate Recargo de Equivalencia + Shipping:** Simultaneous support for mixed
   carts with **21% IVA (+5.2% R.E.)**, **10% IVA (+1.4% R.E.)**, **4% IVA (+0.5%
   R.E.)**, and shipping surcharges.
 * **IRPF Withholding for Spanish Freelancers (_Retención de IRPF Autónomos -15%/-
   7%_):** Automatically deducts `-15%` or `-7%` IRPF on the net taxable base for
   Spanish B2B transactions.
 * **WooCommerce PDF Invoices & Packing Slips Integration:** Prints the customer’s**
   NIF / CIF** and itemized **Recargo de Equivalencia** and **IRPF** accounting 
   tables (RD 1619/2012) directly on PDF invoices.

## Screenshots

[⌊Checkout Blocks applying Recargo de Equivalencia (5.2%) with the NIF / NIE / CIF
field.⌉⌊Checkout Blocks applying Recargo de Equivalencia (5.2%) with the NIF / NIE/
CIF field.⌉[

Checkout Blocks applying Recargo de Equivalencia (5.2%) with the NIF / NIE / CIF
field.

[⌊Settings panel under WooCommerce > Fiscalidad España.⌉⌊Settings panel under WooCommerce
> Fiscalidad España.⌉[

Settings panel under WooCommerce > Fiscalidad España.

[⌊Pro add-on: live fiscal regime selector in Checkout Blocks applying IRPF withholding(-
15%).⌉⌊Pro add-on: live fiscal regime selector in Checkout Blocks applying IRPF 
withholding (-15%).⌉[

Pro add-on: live fiscal regime selector in Checkout Blocks applying IRPF withholding(-
15%).

[⌊Pro add-on: PDF invoice (WooCommerce PDF Invoices & Packing Slips) showing the
customer's NIF and the special tax breakdown.⌉⌊Pro add-on: PDF invoice (WooCommerce
PDF Invoices & Packing Slips) showing the customer's NIF and the special tax breakdown
.⌉[

Pro add-on: PDF invoice (WooCommerce PDF Invoices & Packing Slips) showing the customer’s
NIF and the special tax breakdown.

## Installation

 1. Upload `polmichael-recargo-equivalencia-for-woocommerce.zip` via **Plugins > Add
    New > Upload Plugin** in your WordPress Admin dashboard.
 2. Activate the plugin through the **Plugins** menu.
 3. Go to **WooCommerce > Fiscalidad España** to configure your **NIF / NIE / CIF**
    validation rules and the roles subject to **Recargo de Equivalencia**.

## FAQ

### Is this plugin compatible with WooCommerce HPOS and Checkout Blocks?

Yes. The plugin explicitly declares compatibility with both `custom_order_tables`(
HPOS) and `cart_checkout_blocks`, storing all order tax metadata through `WC_Order`
CRUD methods and registering the NIF/CIF field in Checkout Blocks via `woocommerce_register_additional_checkout_field()`.

### Does it exclude the Canary Islands, Ceuta, and Melilla from Recargo de Equivalencia?

Yes. By law, Recargo de Equivalencia only applies in Peninsular Spain and the Balearic
Islands. Orders from Las Palmas (`GC`), Santa Cruz de Tenerife (`TF`), Ceuta (`CE`),
Melilla (`ML`), or outside Spain (`ES`) are automatically excluded.

### Does it prevent corporate CIFs (S.L. / S.A.) from using Recargo de Equivalencia?

Yes. In accordance with Article 149 of the Spanish VAT Act (Ley 37/1992 del IVA),
corporate entities (`S.L.`, `S.A.`) cannot use Recargo de Equivalencia. The validator
automatically detects corporate CIF prefixes and notifies the buyer.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Polmichael Recargo de Equivalencia y NIF/CIF for WooCommerce” is open source software.
The following people have contributed to this plugin.

Contributors

 *   [ polmichael ](https://profiles.wordpress.org/polmichael/)

[Translate “Polmichael Recargo de Equivalencia y NIF/CIF for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/polmichael-recargo-equivalencia-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/polmichael-recargo-equivalencia-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/polmichael-recargo-equivalencia-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/polmichael-recargo-equivalencia-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/polmichael-recargo-equivalencia-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release with full support for WooCommerce HPOS, Checkout Blocks (`woocommerce_register_additional_checkout_field`),
   geographic filtering, and algorithmic NIF/NIE/CIF validation.

## Meta

 *  Version **1.0.0**
 *  Last updated **1 hour ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cif](https://wordpress.org/plugins/tags/cif/)[nif](https://wordpress.org/plugins/tags/nif/)
   [Recargo de Equivalencia](https://wordpress.org/plugins/tags/recargo-de-equivalencia/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/polmichael-recargo-equivalencia-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/polmichael-recargo-equivalencia-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/polmichael-recargo-equivalencia-for-woocommerce/reviews/)

## Contributors

 *   [ polmichael ](https://profiles.wordpress.org/polmichael/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/polmichael-recargo-equivalencia-for-woocommerce/)