=== InvoPress – PDF Invoices for WooCommerce ===
Contributors: jamiulalamrejon
Tags: invoice, pdf invoice, woocommerce, invoices, billing
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Modern PDF invoices for WooCommerce. Pick your brand colors in a live designer and send invoices automatically with order emails.

== Description ==

InvoPress creates clean, modern PDF invoices for your WooCommerce orders. Design the invoice once in a live preview, and InvoPress numbers, attaches and delivers it for you.

= Design =

* **Live designer** – change colors, header style, font, logo and texts and watch the invoice update instantly.
* **8 color themes** (Sunshine, Indigo, Emerald, Coral, Ocean, Violet, Tangerine, Graphite) or any custom color. Text on colored areas switches between light and dark automatically, so every color stays readable.
* **3 header styles** – Split band, Solid header, Minimal.
* **3 fonts** – Poppins, Montserrat and DejaVu Sans (widest language support).
* Your logo, business details, terms, payment instructions and signature image.
* PAID / DUE / REFUNDED badge. Show or hide SKU, item meta, shipping address, payment method and customer note.
* **QR code** linking to your website or any custom link (review page, Facebook, WhatsApp...). Generated on your own server.
* A4 or US Letter.

= Automation =

* Sequential, gap-free invoice numbers with prefix, suffix, digits and date tokens ({Y} {y} {m} {d}).
* Creates the invoice automatically on the order statuses you choose.
* Attaches the PDF to the WooCommerce emails you choose.
* "Email invoice to customer" in the order actions dropdown.

= Store admin and customers =

* Invoice box on the order screen, invoice button in the Orders list and bulk "Download invoices (PDF)".
* Download button for customers in My Account, on the order page and on the thank-you page.
* Optional guest download links protected by the secret order key.
* Compatible with High-Performance Order Storage (HPOS) and the Cart & Checkout blocks.

= Private by design =

PDFs are generated on your own server with the bundled Dompdf library. InvoPress does not contact any external service, does not track anything and adds no credit or link to your invoices or your store front.

= Developer & support =

InvoPress is developed by [Jamiul Alam Rejon](https://jamiulalamrejon.com/).

Found a bug or need help? Use the plugin support forum or [contact the developer](https://www.jamiulalamrejon.com/#contact).

= Third-party libraries =

InvoPress bundles these libraries, all compatible with the GPL:

* [Dompdf](https://github.com/dompdf/dompdf) 3.1.6 – LGPL-2.1. PHP execution and remote file loading are disabled.
* [php-font-lib](https://github.com/dompdf/php-font-lib) and [php-svg-lib](https://github.com/dompdf/php-svg-lib) – LGPL-2.1 / LGPL-3.0.
* [html5-php](https://github.com/Masterminds/html5-php) – MIT.
* [PHP CSS Parser](https://github.com/MyIntervals/PHP-CSS-Parser) – MIT.
* [Poppins](https://github.com/itfoundry/Poppins) and [Montserrat](https://github.com/JulietaUla/Montserrat) fonts – SIL Open Font License 1.1.
* DejaVu fonts (bundled with Dompdf) – Bitstream Vera / public domain license.

= For developers =

Override the template by copying `templates/invoice.php` to `yourtheme/invopress/invoice.php`.

Filters: `invopress_template_data`, `invopress_item_data`, `invopress_invoice_number`, `invopress_template_path`, `invopress_qr_url`, `invopress_dompdf_options`, `invopress_attach_to_email`, `invopress_auto_create`, `invopress_attachable_emails`.

Actions: `invopress_invoice_created`, `invopress_after_invoice`.

== Installation ==

1. Install and activate WooCommerce.
2. In WordPress go to Plugins → Add New, search for "InvoPress" and click Install, then Activate. (Or upload the zip in Plugins → Add New → Upload Plugin.)
3. Go to WooCommerce → Invoices to design your invoice and choose when it is created and emailed.

== Frequently Asked Questions ==

= Where do I find the settings? =

WooCommerce → Invoices.

= When is an invoice number created? =

When an order reaches one of the statuses you select (Processing and Completed by default), when you open the invoice from the order screen, or when the PDF is attached to an email. Numbers are never reused.

= Can I change the starting number? =

Yes, in the "Numbering & emails" tab. Change it only when you start a new sequence.

= The ৳ (Taka) or another currency symbol shows as a box =

Turn on "Use currency code instead of symbol" in the Fields tab. It is on by default for BDT, PKR, LKR and NPR.

= Can the invoice be in Bangla, Arabic or Hindi? =

Labels can be translated. Text in Latin, Cyrillic and Greek scripts works with every font. The PDF engine cannot yet shape complex scripts such as Bangla, Arabic or Devanagari correctly.

= Where does the QR code link to? =

To the Website from the Business tab (or your site address if that is empty), or to any custom link you enter in the Fields tab. You can also turn it off there. The code is created on your server; no external QR service is used.

= Does InvoPress add a credit link to my invoices? =

No. Nothing is added to your invoices or your store front.

= I found a problem. How do I report it? =

Please open a topic in the support forum or [contact the developer](https://www.jamiulalamrejon.com/#contact).

== Screenshots ==

1. The invoice designer with live preview.
2. Invoices in four color themes and three header styles.
3. The default "Sunshine" invoice with a QR code to your website.
4. QR code settings: link to your website or any custom link.

== Changelog ==

= 1.2.0 =
* New: QR code on the invoice that opens your website or a custom link, with its own caption. Built-in generator, no external service.
* New: Developer credit and "Report an issue" links in the admin.
* Improved: Security and coding-standards hardening for WordPress.org.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.2.0 =
Adds a QR code to your invoices that links to your website or any custom link.
