{"id":414174,"date":"2026-11-29T12:50:22","date_gmt":"2026-11-29T12:50:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nexo-recargo-de-equivalencia-y-nifcif-for-woocommerce\/"},"modified":"2026-11-29T12:50:07","modified_gmt":"2026-11-29T12:50:07","slug":"polmichael-recargo-equivalencia-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/polmichael-recargo-equivalencia-for-woocommerce\/","author":23613551,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"Polmichael Recargo de Equivalencia y NIF\/CIF for WooCommerce","header_author":"polmichael","header_description":"Plugin para WooCommerce que aplica el Recargo de Equivalencia por rol de cliente minorista (con filtro geogr\u00e1fico Pen\u00ednsula\/Baleares) y a\u00f1ade validaci\u00f3n algor\u00edtmica oficial de NIF, NIE y CIF en el checkout. 100% compatible con HPOS.","last_updated":"2026-11-29 12:50:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":19,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"polmichael","date":"2026-11-29 12:50:07","revision":3833020}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3833020,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3833020,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3833020,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3833020,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3833020,"resolution":"1","location":"assets","locale":"","width":1220,"height":503},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3833020,"resolution":"2","location":"assets","locale":"","width":1114,"height":1621},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3833020,"resolution":"3","location":"assets","locale":"","width":1220,"height":768},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3833020,"resolution":"4","location":"assets","locale":"","width":1240,"height":1052}},"screenshots":{"1":"Checkout Blocks applying Recargo de Equivalencia (5.2%) with the NIF \/ NIE \/ CIF field.","2":"Settings panel under WooCommerce &gt; Fiscalidad Espa\u00f1a.","3":"Pro add-on: live fiscal regime selector in Checkout Blocks applying IRPF withholding (-15%).","4":"Pro add-on: PDF invoice (WooCommerce PDF Invoices &amp; Packing Slips) showing the customer's NIF and the special tax breakdown."}},"plugin_section":[],"plugin_tags":[63265,46087,141768,296334,286],"plugin_category":[45],"plugin_contributors":[296335],"plugin_business_model":[],"class_list":["post-414174","plugin","type-plugin","status-publish","hentry","plugin_tags-cif","plugin_tags-nif","plugin_tags-recargo-de-equivalencia","plugin_tags-spain-tax","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-polmichael","plugin_committers-polmichael"],"banners":{"banner":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/banner-772x250.png?rev=3833020","banner_2x":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/banner-1544x500.png?rev=3833020","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/icon-128x128.png?rev=3833020","icon_2x":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/icon-256x256.png?rev=3833020","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/screenshot-1.png?rev=3833020","caption":"Checkout Blocks applying Recargo de Equivalencia (5.2%) with the NIF \/ NIE \/ CIF field."},{"src":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/screenshot-2.png?rev=3833020","caption":"Settings panel under WooCommerce &gt; Fiscalidad Espa\u00f1a."},{"src":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/screenshot-3.png?rev=3833020","caption":"Pro add-on: live fiscal regime selector in Checkout Blocks applying IRPF withholding (-15%)."},{"src":"https:\/\/ps.w.org\/polmichael-recargo-equivalencia-for-woocommerce\/assets\/screenshot-4.png?rev=3833020","caption":"Pro add-on: PDF invoice (WooCommerce PDF Invoices &amp; Packing Slips) showing the customer's NIF and the special tax breakdown."}],"raw_content":"<!--section=description-->\n<p><strong>Polmichael Recargo de Equivalencia y NIF\/CIF for WooCommerce<\/strong> provides clean, lightweight, and 100% <strong>HPOS (<code>custom_order_tables<\/code>)<\/strong> and <strong>Checkout Blocks (<code>cart_checkout_blocks<\/code>)<\/strong> compatible Spanish B2B tax management for WooCommerce stores selling in Spain.<\/p>\n\n<p>Designed specifically for Spanish wholesale and B2B\/B2C hybrid stores, it automates the mandatory <strong>Recargo de Equivalencia<\/strong> VAT surcharge for retail merchants (<em>comerciantes minoristas aut\u00f3nomos<\/em>) and adds official algorithmic verification for Spanish tax identification numbers (<strong>NIF, DNI, NIE, and CIF<\/strong>).<\/p>\n\n<h3>Key Free Features<\/h3>\n\n<ul>\n<li><strong>Dedicated \"Minorista con Recargo de Equivalencia\" Role:<\/strong> Automatically registers the <code>rfes_minorista_re<\/code> customer role and allows assigning <strong>Recargo de Equivalencia<\/strong> to any WordPress role or individual customer profile.<\/li>\n<li><strong>Exact Post-Coupon Net Base Calculation:<\/strong> Calculates the Spanish <strong>Recargo de Equivalencia<\/strong> (<code>+5.2%<\/code> on the general <code>21%<\/code> IVA rate) strictly on the post-discount net taxable base without distorting product base prices on stores configured with <em>\"Prices entered with tax\"<\/em>.<\/li>\n<li><strong>Automatic Spanish Geographic Tax Filter:<\/strong> Ensures <strong>Recargo de Equivalencia<\/strong> is only applied when the customer's tax address is in <strong>Spain (<code>ES<\/code> \u2014 Peninsula and Balearic Islands)<\/strong>, automatically excluding the Canary Islands (<code>TF<\/code>, <code>GC<\/code>), Ceuta (<code>CE<\/code>), and Melilla (<code>ML<\/code>) where IGIC\/IPSI apply.<\/li>\n<li><strong>Official Algorithmic NIF, DNI, NIE &amp; CIF Validation (Orden EHA\/451\/2008):<\/strong>\n\n<ul>\n<li>Validates Modulo 23 check letters for Spanish <strong>DNI \/ NIF<\/strong> and <strong>NIE<\/strong> (<code>X<\/code>, <code>Y<\/code>, <code>Z<\/code>), special personal NIFs (<code>K<\/code>, <code>L<\/code>, <code>M<\/code>), and even\/odd checksum digits and letters for corporate <strong>CIF<\/strong> numbers (<code>A-H, J, N, P-S, U, V, W<\/code>).<\/li>\n<li><strong>Article 149 Spanish VAT Law (LIVA) Protection:<\/strong> Prevents applying <strong>Recargo de Equivalencia<\/strong> when a customer enters a corporate entity <strong>CIF<\/strong> (<em>Sociedad Limitada S.L.<\/em> or <em>Sociedad An\u00f3nima S.A.<\/em>), reserving the regime for individual retail merchants (<em>aut\u00f3nomos<\/em>) and <em>Comunidades de Bienes<\/em> (<code>E<\/code>, <code>J<\/code>).<\/li>\n<\/ul><\/li>\n<li><strong>Native Support for Both Checkout Blocks &amp; Classic Checkout:<\/strong> Uses WooCommerce's native Additional Checkout Fields API (<code>woocommerce_register_additional_checkout_field<\/code>) on Checkout Blocks and standard billing fields on Classic Checkout.<\/li>\n<li><strong>100% Native WooCommerce HPOS Storage:<\/strong> Persists <code>_rfes_tax_id<\/code>, <code>_rfes_fiscal_regime<\/code>, and <code>_rfes_breakdown<\/code> exclusively through the <code>WC_Order<\/code> CRUD API (<code>$order-&gt;update_meta_data()<\/code> and <code>$order-&gt;get_meta()<\/code>).<\/li>\n<\/ul>\n\n<h3>Optional Pro Add-on Features<\/h3>\n\n<p>For stores and agencies needing live customer self-selection at checkout, multi-rate tax brackets, and professional <strong>IRPF<\/strong> withholding:<\/p>\n\n<ul>\n<li><strong>Live Fiscal Regime Selector in Checkout Blocks (React Inner Block) &amp; Classic Checkout:<\/strong> Customers can select <em>Particular<\/em>, <em>Empresa \/ Aut\u00f3nomo<\/em>, <em>Minorista con Recargo de Equivalencia<\/em>, or <em>Profesional con Retenci\u00f3n IRPF<\/em> directly during checkout with instant <code>extensionCartUpdate<\/code> cart recalculation.<\/li>\n<li><strong>Multi-Rate Recargo de Equivalencia + Shipping:<\/strong> Simultaneous support for mixed carts with <strong>21% IVA (+5.2% R.E.)<\/strong>, <strong>10% IVA (+1.4% R.E.)<\/strong>, <strong>4% IVA (+0.5% R.E.)<\/strong>, and shipping surcharges.<\/li>\n<li><strong>IRPF Withholding for Spanish Freelancers (<em>Retenci\u00f3n de IRPF Aut\u00f3nomos -15% \/ -7%<\/em>):<\/strong> Automatically deducts <code>-15%<\/code> or <code>-7%<\/code> IRPF on the net taxable base for Spanish B2B transactions.<\/li>\n<li><strong>WooCommerce PDF Invoices &amp; Packing Slips Integration:<\/strong> Prints the customer's <strong>NIF \/ CIF<\/strong> and itemized <strong>Recargo de Equivalencia<\/strong> and <strong>IRPF<\/strong> accounting tables (RD 1619\/2012) directly on PDF invoices.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>polmichael-recargo-equivalencia-for-woocommerce.zip<\/code> via <strong>Plugins &gt; Add New &gt; Upload Plugin<\/strong> in your WordPress Admin dashboard.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu.<\/li>\n<li>Go to <strong>WooCommerce &gt; Fiscalidad Espa\u00f1a<\/strong> to configure your <strong>NIF \/ NIE \/ CIF<\/strong> validation rules and the roles subject to <strong>Recargo de Equivalencia<\/strong>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"is%20this%20plugin%20compatible%20with%20woocommerce%20hpos%20and%20checkout%20blocks%3F\"><h3>Is this plugin compatible with WooCommerce HPOS and Checkout Blocks?<\/h3><\/dt>\n<dd><p>Yes. The plugin explicitly declares compatibility with both <code>custom_order_tables<\/code> (HPOS) and <code>cart_checkout_blocks<\/code>, storing all order tax metadata through <code>WC_Order<\/code> CRUD methods and registering the NIF\/CIF field in Checkout Blocks via <code>woocommerce_register_additional_checkout_field()<\/code>.<\/p><\/dd>\n<dt id=\"does%20it%20exclude%20the%20canary%20islands%2C%20ceuta%2C%20and%20melilla%20from%20recargo%20de%20equivalencia%3F\"><h3>Does it exclude the Canary Islands, Ceuta, and Melilla from Recargo de Equivalencia?<\/h3><\/dt>\n<dd><p>Yes. By law, Recargo de Equivalencia only applies in Peninsular Spain and the Balearic Islands. Orders from Las Palmas (<code>GC<\/code>), Santa Cruz de Tenerife (<code>TF<\/code>), Ceuta (<code>CE<\/code>), Melilla (<code>ML<\/code>), or outside Spain (<code>ES<\/code>) are automatically excluded.<\/p><\/dd>\n<dt id=\"does%20it%20prevent%20corporate%20cifs%20%28s.l.%20%2F%20s.a.%29%20from%20using%20recargo%20de%20equivalencia%3F\"><h3>Does it prevent corporate CIFs (S.L. \/ S.A.) from using Recargo de Equivalencia?<\/h3><\/dt>\n<dd><p>Yes. In accordance with Article 149 of the Spanish VAT Act (Ley 37\/1992 del IVA), corporate entities (<code>S.L.<\/code>, <code>S.A.<\/code>) cannot use Recargo de Equivalencia. The validator automatically detects corporate CIF prefixes and notifies the buyer.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release with full support for WooCommerce HPOS, Checkout Blocks (<code>woocommerce_register_additional_checkout_field<\/code>), geographic filtering, and algorithmic NIF\/NIE\/CIF validation.<\/li>\n<\/ul>","raw_excerpt":"Spain B2B tax plugin for WooCommerce: apply Recargo de Equivalencia by role and validate Spanish NIF, NIE &amp; CIF tax IDs. HPOS ready.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/414174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=414174"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/polmichael"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=414174"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=414174"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=414174"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=414174"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=414174"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=414174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}