=== Simple Invoice Generator ===
Contributors: tsplugins
Tags: invoice, generator, invoice generator, invoice-generator, woocommerce
Requires at least: 5.2
Tested up to: 6.9
Requires PHP: 7.0
Stable tag: 1.0.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate beautiful PDF invoices from WP admin — with optional WooCommerce integration. No database needed, all done on the fly.

== Description ==

**Simple Invoice Generator** is a lightweight, easy-to-use WordPress plugin for generating PDF invoices. It also includes powerful **WooCommerce support**, allowing automatic invoice generation when customers complete an order.

🎉 **WooCommerce Integration!**
Automatically generate and attach a PDF invoice when a WooCommerce order is placed (e.g. after checkout or when an order is marked as completed).
You can **enable or disable automatic invoice generation** from the plugin settings page with a simple checkbox.

Also you can view and download the generated invoice directly from the order admin screen.

### Core features:
- Input invoice details (bill from / to, items, prices, tax, currency, etc.)
- Automatically generates WooCommerce order invoices with proper customer data
- Choose between two built-in PDF styles: **Standard** and **Blue Accent**
- Upload a custom logo to display on the invoice
- Preview and download the PDF file
- All done without storing anything in the database

Great for freelancers, small businesses, or WooCommerce shops needing a simple invoice workflow!

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/invoice-generator` directory, or install the plugin through the WordPress Plugins screen directly.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the **Invoice Generator** section in the admin menu to begin creating invoices manually.
4. (Optional) To use WooCommerce integration, simply have WooCommerce active — no extra setup required.

== Usage ==

🧾 **Manual Invoice Creation**
1. Go to the **Invoice Generator** menu item in your admin panel.
2. Fill in invoice details: invoice number, dates, billing info, line items, currency, and tax.
3. Optionally upload a logo to include on your invoice.
4. Select your preferred template style: **Standard** or **Blue Accent**.
5. Click **Generate Invoice** to create and download your PDF.

🛒 **WooCommerce Invoices**
- When a WooCommerce order is completed (or placed), an invoice is automatically generated.
- You’ll see the **Invoice PDF** download link directly inside the WooCommerce order admin panel.
- The generated invoice uses the order’s billing data, products, prices, currency, and tax details.

🛠️ **Controlling Automatic Invoice Generation**
You can toggle the automatic generation of invoices for WooCommerce orders on or off in the plugin settings:

1. Go to **Invoice Generator > Settings** in the WordPress admin menu.
2. Find the **WooCommerce Integration** checkbox.
3. Check it to enable automatic invoice generation, or uncheck to disable.
4. Save changes.

This gives you full control to disable invoice generation if you want to handle invoices manually or with another system.


== Frequently Asked Questions ==

= Does this plugin store data in the database? =
No. This plugin is purely frontend-driven for manual invoices. For WooCommerce orders, the generated PDF link is saved as order meta only.

= Is WooCommerce required? =
No, WooCommerce is optional. But if WooCommerce is active, the plugin will auto-enable invoice generation for orders.

= Can I disable automatic invoice generation for WooCommerce orders? =
Yes! From version 1.0.8 onward, you can toggle this feature in the plugin's Settings page using the WooCommerce Integration checkbox.


== Screenshots ==

1. **Invoice form in admin panel** – Easy-to-use invoice editor directly in the WordPress admin area.
2. **Generated PDF in Standard style** – A clean, professional invoice layout without logo.
3. **Generated PDF in Blue Accent style** – An alternative layout with bold styling and accent color.
4. **Standard PDF with logo** – Example of a branded invoice using the Standard template with a custom logo.
5. **Blue Accent PDF with logo** – Example of a branded invoice using the Blue Accent template and logo.
6. **WooCommerce admin view** – Invoice PDF download link inside a WooCommerce order in the WordPress admin.
7. **WooCommerce customer view (Checkout)** – Downloadable invoice link shown to the customer after placing an order.


== Changelog ==

= 1.0.9 =
* Updated tested version

= 1.0.8 =
* Added option to enable/disable automatic invoice generation for WooCommerce orders via plugin settings

= 1.0.7 =
* Full WooCommerce integration!
* Auto-generates invoices for WooCommerce orders (on checkout or order completion)
* Shows download link in WooCommerce order admin screen
* Stores PDF link as order meta

= 1.0.6 =
* Added a support section with mailto links for Help, Feature Requests, and Bug Reports

= 1.0.5 =
* Added feature to upload logo to PDF file

= 1.0.4 =
* Fixed mobile view

= 1.0.3 =
* Added new invoice template

= 1.0.2 =
* Added functions to generate invoices programmatically from provided data

= 1.0.1 =
* Update styles and data pickr

= 1.0.0 =
* Initial release. Create and download invoices as PDF from the WordPress admin panel.

== Upgrade Notice ==

= 1.0.7 =
Big update: WooCommerce support added! Automatically generate and view PDF invoices for orders.

== License ==

This plugin is licensed under the GPLv2 or later.
