=== DocumentFlow for WooCommerce ===
Contributors: thewpcraft
Tags: woocommerce, invoice, packing slip, delivery note, printing
Requires at least: 5.8
Tested up to: 7.1
WC requires at least: 5.0
WC tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Streamline your WooCommerce order fulfillment with professional, customizable Invoices, Packing Slips, Delivery Notes, and Receipts.

== Description ==

**DocumentFlow for WooCommerce** is a lightweight, high-performance solution for generating, managing, and printing essential WooCommerce store documents. Built for speed and flexibility, DocumentFlow uses browser-native printing to deliver instant, pixel-perfect documents without the memory overhead of PDF libraries.

Whether you need professional B2B invoices with GSTIN and digital signatures, checklist-style packing slips, or delivery notes, DocumentFlow handles your order documentation workflow seamlessly.

= Key Features =

* **4 Essential Document Types**: Generate professional Invoices, Packing Slips, Delivery Notes, and Order Receipts.
* **Browser-Native Instant Printing**: Fast, lightweight document generation with zero heavy server dependencies or PDF rendering overhead.
* **Bulk Printing Capabilities**: Select multiple WooCommerce orders and print invoices or packing slips in a single click.
* **Sequential Invoice Numbering**: Set up custom sequential invoice numbers with dynamic date and format tags (e.g., `INV/{year}/{number}`).
* **Store Branding & Business Details**: Add custom Store Logo, Digital Signature / Stamp, Store Address, Tagline, GSTIN, Phone, Email, and Website details.
* **Document Design Customization**: Personalize primary accent colors, font families (Inter, Roboto, Open Sans, Lato, Arial), and custom document titles.
* **Flexible Display Controls**: Toggle product images, SKU, tax columns, pricing on packing slips, and status watermarks.
* **WooCommerce Order Management**: Print directly from the WooCommerce order edit screen metabox, quick action buttons, or Admin Bar navigation bar.
* **A4 Paper Standard Layout**: Pixel-perfect layout optimized for standard A4 paper printing.
* **High-Performance Order Storage (HPOS)**: Fully compatible with WooCommerce HPOS and custom order tables.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install directly through the WordPress Plugins screen.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **WooCommerce > DocumentFlow** or **DocumentFlow** in the admin menu to configure your store settings, branding, and template preferences.

== Changelog ==

= 1.1.1 =
* Security Update: Completely removed arbitrary Custom CSS input fields, backend processing, and inline CSS rendering per WordPress.org Review guidelines.
* Enhanced Security: Added input sanitization whitelists for font family and paper size, action parameter validation for print requests, and path traversal protection in template loading.
* Hardened Output Escaping: Enhanced context-appropriate output escaping across all printable document templates (Invoices, Packing Slips, Delivery Notes, and Receipts).

= 1.1.0 =
* Security and compliance update for WordPress.org Plugin Review guidelines.
* Removed arbitrary custom CSS input to ensure security and compliance with WordPress.org standards.
* Prefixed all functions, classes, options, nonces, handles, and CSS classes with DOCUFOWO.
* Added WooCommerce dependency headers and graceful fallback checks.
* Updated Plugin URI and enhanced input sanitization and output escaping.

= 1.0.0 =
* Initial release with Invoice, Packing Slip, Delivery Note, and Receipt document generation.
