BACK TO DIRECTORY

WC – APG NIF/CIF/NIE Field

by Art Project Group

4.8
(23 ratings)

WC – APG NIF/CIF/NIE Field adds to your WooCommerce store a new NIF/CIF/NIE field in all billing and shipping forms, available to both the administrator and the customer.

Requirements: the plugin needs WooCommerce 2.4.0 or higher and the SoapClient PHP class for VIES/EORI validation.

Features

  • Fully compatible with the Checkout block of the WordPress block editor.
  • You can require the NIF/CIF/NIE field in the billing form.
  • You can require the NIF/CIF/NIE field in the billing form only from a given order amount.
  • You can require the NIF/CIF/NIE field in the shipping form.
  • You can hide the NIF/CIF/NIE field from the shipping form.
  • You can customize the priority (position) of the field.
  • You can validate the NIF/CIF/NIE field.
  • You can validate the VIES VAT number field to apply a tax exemption.
  • You can validate the EORI field to prevent the sale if a valid number is not entered.
  • You can select the country(ies) where the EORI field will be validated.
  • You can customize the label and placeholder of the NIF/CIF/NIE, VIES VAT number or EORI field.
  • You can customize the error message of the field NIF/CIF/NIE, VIES VAT number or EORI.
  • You can customize the error message if the maximum number of requests to the VIES VAT number verification API is exceeded.
  • Add and require phone and email fields in the shipping form.
  • You can remove the phone and email fields from the default address.
  • You can display and customize an error message for the billing form using the apg_nif_display_error_message and apg_nif_error_message filters.
  • You can remove the Email and Phone fields from the submission form with the apg_nif_add_fields filter.
  • You can skip validation by country or external condition with the apg_nif_skip_validation filter.
  • You can override the required status for billing or shipping with the apg_nif_skip_required filter.
  • You can change the order amount compared against the configured threshold with the apg_nif_importe_del_pedido filter.
  • You can limit how many VIES/EORI lookups a single IP can trigger per minute with the apg_nif_maximo_consultas_por_minuto filter (off by default).
  • Adds a customer download button in WooCommerce (Customers) that includes the NIF/CIF/NIE field in the CSV.
  • Each identifier is checked with the official algorithm of its country, not just its shape.
  • It validates documents from:
    • Albania.
    • Andorra.
    • Austria.
    • Argentina.
    • Åland Islands.
    • Brazil.
    • Belgium.
    • Bulgaria.
    • Belarus.
    • Switzerland.
    • Chile.
    • Colombia.
    • Cyprus.
    • Czech Republic.
    • Germany.
    • Denmark.
    • Estonia.
    • Spain.
    • European Union.
    • Finland.
    • Faroe Islands.
    • France.
    • Great Britain.
    • Greece.
    • Croatia.
    • Hungary.
    • Ireland.
    • Iceland.
    • Italy.
    • Liechtenstein.
    • Lithuania.
    • Luxembourg.
    • Latvia.
    • Monaco.
    • Moldova.
    • Montenegro.
    • North Macedonia.
    • Northern Ireland.
    • Malta.
    • Mexico.
    • Netherlands.
    • Peru.
    • Norway.
    • Poland.
    • Portugal.
    • Romania.
    • Serbia.
    • Sweden.
    • Slovenia.
    • Slovak Republic.
    • San Marino.
    • Ukraine.
    • Uruguay.
  • 100% compatible with WooCommerce PDF Invoices & Packing Slips.
  • 100% compatible with WPML.
  • 100% compatible with Checkout Field Editor (Checkout Manager) for WooCommerce
  • Contextual help on the settings page, explaining every setting without leaving the screen.

Translations

More information

You can learn more about WC – APG NIF/CIF/NIE Field on our official website, and follow the development on GitHub.

You can also read the full documentation, with every setting explained one by one.

Thanks

Thanks to everyone who uses the plugin, helps improve it, makes a donation or encourages us with their comments.

If you find this plugin useful, you can support its development with a small donation.

External Services

  1. To the WordPress.org Plugins API to fetch plugin information.

    • It sends the plugin slug when requesting data.
    • More information: https://wordpress.org/about/privacy/
  2. To the European Commission VAT number validation API (VIES) and EORI number validation API.

    • It sends the country and VAT number — VIES validation —.
    • It sends the EORI number.
    • More information: https://commission.europa.eu/privacy-policy-websites-managed-european-commission_es
  3. To the UK Government EORI number validation API.

    • It sends the EORI number.
    • More information: https://www.gov.uk/help/privacy-notice
  4. To the VatApp EORI number validation API.

    • It sends the EORI number.
    • More information: https://vatapp.net/privacy-policy

Screenshots

Screenshot of WC - APG NIF/CIF/NIE field.

Screenshot of WC - APG NIF/CIF/NIE field.

Screenshot of WC - APG NIF/CIF/NIE field. Billing and shipping forms. Checkout Block.

Screenshot of WC - APG NIF/CIF/NIE field. Billing and shipping forms. Checkout Block.

Screenshot of WC - APG NIF/CIF/NIE field. Billing and shipping forms. Classic Shortcode.

Screenshot of WC - APG NIF/CIF/NIE field. Billing and shipping forms. Classic Shortcode.

Plugin Details

Active Installs
10K+
Total Downloads
403,659
Version
4.18.0
Requires WP
5.0
Requires PHP
7.4
Tested Up To
7.2
Added
2016-08-12
Last Updated
2026-10-28 7:38pm GMT

Ratings

5
22
4
0
3
0
2
0
1
1