Deleteweb Dati Fiscali Italia for WooCommerce

Description

Italian shops need fiscal data to issue invoices (fattura elettronica). This plugin adds the fields to the WooCommerce checkout and asks for each one only when it applies:

  • Customer type: individual or company.
  • Codice Fiscale: individuals in Italy, checked with its control character.
  • VAT number (Partita IVA): companies in the EU; Italian numbers are checked with their check digit.
  • PEC and SDI recipient code: Italian companies. You choose whether one of the two is enough, or which ones are required.
  • Company name: companies only.

Customers outside Italy are not asked for Italian data, and customers outside the EU are not asked for any tax number, so foreign orders are never blocked.

Features:

  • Works with the classic checkout and with the Cart and Checkout blocks.
  • Compatible with High-Performance Order Storage (HPOS).
  • Data shown on the admin order page (editable), in order emails, on the customer’s order page and in the My Account billing address.
  • Data printed on invoices made with PDF Invoices & Packing Slips for WooCommerce.
  • Admin order search by Codice Fiscale, VAT number, PEC and SDI code.
  • Optional VIES check of EU VAT numbers (outside Italy): adds an order note, or refuses invalid numbers.
  • Import tool: copies fiscal data saved by other plugins or snippets (for example Checkout Manager fields) into this plugin’s fields, for customers, orders and subscriptions. It never overwrites or deletes existing data.
  • Privacy: fiscal data are included in WordPress personal data export and erasure.
  • Settings in WooCommerce Settings Advanced Fiscal data.
  • Translations: English included; Italian and other languages come from translate.wordpress.org.

External services

This plugin can connect to VIES (VAT Information Exchange System), a service of the European Commission, to check whether an EU VAT number is valid.

  • When: only if the «VIES check» setting is enabled (it is off by default), when a company customer from an EU country other than Italy places an order.
  • What is sent: the country code and the VAT number entered at checkout. Nothing else.
  • Where: https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number
  • Results are cached on your site for one day.

Service provided by the European Commission: legal notice, privacy policy.

Installation

  1. Upload the plugin and activate it. WooCommerce must be active.
  2. Go to WooCommerce Fiscal data and choose which fields are required.
  3. Block checkout only: in the checkout page editor, turn off the WooCommerce «Company» field (in the shipping address block). This plugin asks for the company name itself, and only for companies.
  4. If fiscal data were collected before by another plugin or snippet, use WooCommerce Import fiscal data.

FAQ

Why is the VAT number of an Italian company not checked on VIES?

Many valid Italian VAT numbers are not registered in VIES: a company must opt in to intra-EU trade. Checking them would refuse legitimate customers, so Italian numbers are checked with their check digit only.

What happens if VIES does not answer?

The order always goes through and, if notes are enabled, the order note says the number could not be checked.

Can I hide first and last name for companies?

Yes in the classic checkout (an option in the settings). In the block checkout WooCommerce does not allow hiding its name fields conditionally, so they stay visible.

Can I change the wording of the fields?

Yes, translate the strings with a plugin such as Loco Translate.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Deleteweb Dati Fiscali Italia for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.4.2

  • Plugin renamed to “Deleteweb Dati Fiscali Italia for WooCommerce” (slug deleteweb-dati-fiscali-italia).
  • Translations are now provided by translate.wordpress.org.

2.4.1

  • First public release.
  • Block checkout: «PEC or SDI» is checked when the order is placed, and labels always show the alternative.
  • Block checkout: fiscal data are no longer shown twice on the admin order page.
  • Settings saved by earlier versions are kept.