Invoice for WooCommerce

By seosbg

★ 5.0/5 (2 ratings)100+ active installationsVersion 3.0.3

Generate PDF invoices for WooCommerce. VIES VAT number validation and VAT number field. Translatable invoice - make an invoice in any language.

Description

Generate easy invoices for WooCommerce. VIES VAT number validation and VAT number field. Translatable invoice – make an invoice in any language. First go to WordPress Dashboard -> Invoice and set the values. Then open an order, add an invoice number (or use the suggested one) and download the invoice. The plugin is not intended for Saudi Arabia and there is no VAT validation for Saudi Arabia.

  • Works with the classic and the block (Cart & Checkout blocks) checkout.
  • Compatible with WooCommerce High-Performance Order Storage (HPOS).
  • VAT number field with VIES validation (no SOAP extension needed).
  • Invoice numbers with duplicate protection, suggested next number and optional automatic numbering.
  • Choose for which order statuses invoices can be created.
  • Shipping, fees and discounts are listed on the invoice.
  • Attach invoice PDF buttons to the orders list.
  • Create your own template: copy templates/invoice.php to yourtheme/invoice-for-woocommerce/invoice.php.
  • Download the PDF invoice.
  • Translatable – Bulgarian translation included.

Security

  • Invoice files are stored with unguessable names and the folder is protected for Apache, Nginx and IIS.
  • Downloads require a logged-in shop manager/administrator and a valid security token.
  • The PDF engine (Dompdf 3.1) runs with remote file access and PHP disabled.

Premium Options

  • Generate and download invoices in two languages.
  • Exchange Rate for the second language.
  • Invoice Footer Text.
  • Activate Invoice Field – Grounds for zero rate for European companies.
  • For EU companies and Digital Goods. If you are selling digital products, remove the tax when the user provides a real VAT number.
  • The customer self-declare their address.
  • Show in the orders list. How many times the invoice was downloaded by the user.
  • Show products in the orders list.
  • Send E-mail.
  • Invoice QR Code.
  • Activate user download. The user can download the invoice from his account.

Installation

Install via Plugins > Install New

  1. Search for “invoice for WooCommerce”
  2. Click the “Install Now” link
  3. Click “Activate Plugin”

Via ZIP / FTP

  1. Unzip the ZIP file and drop the folder straight into your wp-content/plugins directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Credits

PDF generation by Dompdf (LGPL) https://github.com/dompdf/dompdf

FAQ

Do I lose my settings or invoices when I update from 2.x?

No. All settings, invoice numbers and invoice data are kept. Existing invoice files are renamed to secure names automatically and old download links still work.

Is there a tutorial?

See the Tutorial.

Can I change the invoice after it was issued?

The invoice keeps the data from the moment it was issued. To take the current order data again, tick “Update the invoice data” in the order and save.

Changelog

3.0.3 01 November 2026

  • CHANGE: Tested up to: 7.1

3.0.2 October 2026

  • CHANGE: Compact invoice download buttons with flags in the orders list.

3.0.1 October 2026

  • CHANGE: Shared code base with Invoice for WooCommerce Premium 2.0 – settings and invoices move between the two editions without changes.
  • CHANGE: The free edition steps aside automatically when the premium edition is active.
  • ADDED: Developer hooks for the settings page, the order screen and the invoice template.

3.0.0 October 2026

  • SECURITY: Invoice PDFs could be downloaded by anyone on Nginx/LiteSpeed/IIS servers (predictable file names). Files are now renamed to unguessable names and the folder is protected for all servers.
  • SECURITY: Updated the PDF library from Dompdf 1.0.2 (known vulnerabilities) to Dompdf 3.1.6; remote resources and PHP execution are disabled.
  • SECURITY: Removed the unused mPDF 6.1 library (19 MB, known vulnerabilities).
  • SECURITY: Added nonces and capability checks to every save and download (CSRF fixes). Order data is calculated on the server instead of being taken from hidden form fields.
  • SECURITY: Escaped all output in the admin (stored XSS fixes) and sanitized all settings.
  • ADDED: WooCommerce HPOS (High-Performance Order Storage) compatibility.
  • ADDED: VAT number field for the block checkout.
  • ADDED: Duplicate invoice number protection, suggested next invoice number and optional automatic numbering.
  • ADDED: Choose the order statuses for which invoices can be created.
  • ADDED: Shipping, fees and discounts on the invoice, so the lines add up to the tax base.
  • ADDED: Invoice preview button, template override from the theme, Bulgarian translation.
  • FIX: The PDF download was often broken because it was sent in the middle of the admin page.
  • FIX: The download button in the orders list produced corrupted files.
  • FIX: VIES validation now uses the REST API (no SOAP needed), accepts Greek (EL) and Northern Ireland (XI) numbers and VAT numbers without a country prefix, and no longer breaks the checkout with debug output.
  • FIX: Fatal error in the orders list for orders with zero total.
  • FIX: Rewrite rules were flushed on every page load (slow sites).
  • FIX: Scripts were loaded on every admin and front-end page.
  • FIX: Saving the settings deleted options that are not on the settings page.
  • FIX: The “Maturity date” used the creation date instead of the completion date.
  • FIX: The payment method shows its title instead of the internal ID.
  • FIX: Wrong text domain – translations did not load.
  • FIX: Broken flag images for some countries.
  • CHANGE: Updated EU VAT rates file.

2.1.1 April 20 2021

  • ADDED: Settings Link
  • ADDED: How to Use

2.1.0 April 19 2021

  • ADDED: Premium Options
  • DELETE: Unnecessary Images
  • CHANGE: Logo Image Size

2.0.0 March 09 2021

  • ADDED: VAT number field
  • Invoice VAT Numbers Field.
  • Compatible with European Legislation.
  • VIES VAT number validation.

1.2.4 June 12 2019

  • REMOVE Additinal Information
  • ADDED: Help Icons

1.2.3 June 10 2019

  • ADDED: Download invoices from the My Account page
  • ADDED: Flags

1.2.2 May 29 2019

  • DELETE: Default VAT
  • CHANGE: New Icon
  • ADDED: TAX Field Float Number
  • ADDED: Top Submit Button

1.2.1 May 28 2019

  • DELETE: Footer VAT text
  • ADDED: Translation
  • ADDED: Description
  • CHANGE: Logo Size

1.1.0

Initial release of plugin – 24 May 2019