FiscoCheckout – Codice Fiscale, Partita IVA and SDI at checkout

By ingfontanadaniele

0+ active installationsVersion 1.0.0

Italian tax fields (Codice Fiscale, Partita IVA, PEC, SDI) for the WooCommerce checkout, with real validation. Pro: invoices via Fatture in Cloud.

Description

FiscoCheckout adds the tax data that Italian businesses need to issue invoices to the WooCommerce checkout: Codice Fiscale (tax code), Partita IVA (VAT number), PEC (certified e-mail) and Codice destinatario SDI (e-invoicing recipient code). A Private individual / Company selector sets which fields are required: in the classic checkout only the fields that apply to the selected customer type and billing country are shown; in the block checkout all fields are shown, labelled “for private individuals” or “for companies”, and the required ones are checked when the order is placed.

It works with both the classic checkout (shortcode) and the WooCommerce block checkout (8.9+), and it is compatible with HPOS (High-Performance Order Storage).

Free features

  • Codice Fiscale, Partita IVA, PEC, SDI code and customer type fields at checkout and in the My Account billing address.
  • Real validation: Codice Fiscale check character (including omocodia variants), Partita IVA checksum, SDI format (7 characters) and PEC. Typos are caught before the order is placed.
  • Configurable rules: Codice Fiscale required for private individuals, Partita IVA for companies, SDI or PEC required for Italian companies; scope Italy / EU / all countries.
  • Automatic normalisation (upper case, no spaces); SDI 0000000 is set automatically when the customer enters a PEC.
  • Data is saved on the order and on the customer profile, and shown on the admin order screen (editable), in e-mails, on the thank-you page and in a column of the orders list.
  • Monthly CSV export for your accountant with all the tax data of your orders.
  • Lightweight: no external dependencies and no calls to third-party services in the free version.

FiscoCheckout Pro

  • Fatture in Cloud: connect your account (OAuth, no passwords to copy) and create the electronic invoice from the order with one click or automatically on status change, with VAT rate mapping, submission to the SDI and e-invoice status on the order.
  • Automatic credit notes on refunds.
  • Daily corrispettivi register (sales register) for private customers’ orders without an invoice, with CSV export and recording on Fatture in Cloud.
  • VIES check of EU customers’ VAT numbers at checkout (cached for 24 hours).
  • Separate numbering for e-commerce invoices, priority support.

Annual licence for 1 or 5 sites, 7-day trial with no card required. Discover FiscoCheckout Pro.

For developers

Available hooks: fiscocheckout_billing_fields, fiscocheckout_validation_errors, fiscocheckout_settings_fields, fiscocheckout_csv_header, fiscocheckout_csv_row, fiscocheckout_fic_invoice_payload. Data is stored in the meta keys _billing_customer_type, _billing_fiscal_code, _billing_vat_number, _billing_pec, _billing_sdi_code (compatible with many invoicing plugins).

Privacy

The free version does not send any data to external services. The Pro version sends order data to Fatture in Cloud (TeamSystem S.p.A.) only when the shop owner connects their own account and creates an invoice, and it queries the European Commission VIES service only if the check is enabled. The plugin may send anonymous usage data through Freemius only after explicit consent from the site administrator.

Installation

  1. Upload the fiscocheckout folder to /wp-content/plugins/ or install the plugin from Plugins → Add New.
  2. Activate the plugin. WooCommerce 8.9 or later is required.
  3. Go to WooCommerce → Settings → Fiscal fields (IT) and choose which fields are required.
  4. Place a test order: the fields appear in the billing address.

FAQ

Does it work with the block checkout?

Yes. With WooCommerce 8.9+ the fields are registered through the official Additional Checkout Fields API and appear in the billing address block. In the block checkout all fields are visible, with “for private individuals” and “for companies” in the labels; whether a field is required is checked when the order is placed, based on customer type and country.

Are the fields required for customers outside Italy too?

By default the rules apply to Italy only. You can extend them to the European Union or to all countries. Codice Fiscale is only required in Italy.

Where is the data stored?

In the order meta (_billing_fiscal_code, _billing_vat_number, _billing_pec, _billing_sdi_code, _billing_customer_type) and in the customer profile, so it is pre-filled on future purchases.

Can I use the plugin with other invoicing software?

Yes: the data is on the order and in the CSV export. A direct integration is available for Fatture in Cloud (Pro); more integrations will be added based on demand.

Does the plugin check that the VAT number actually exists?

The free version validates the checksum (catches typos). The Pro version can query the VIES register to confirm that an EU VAT number is active.

Screenshots

Changelog

1.0.0

  • First release: tax fields with validation, classic and block checkout, HPOS, settings, e-mails, orders column, CSV export. Pro: Fatture in Cloud, credit notes, corrispettivi register, VIES.