=== DTFBuild Gang Sheet Builder ===
Contributors: dtfbuilde
Tags: dtf, gang sheet, builder, printing, print on demand
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.2.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A powerful DTF Gang Sheet Builder integration for WooCommerce. Allows your customers to build and customize their gang sheets directly in your store.

== Description ==

DTF Sheet Builder is a professional integration for WooCommerce that allows your customers to visually build, pack, and configure their Direct-to-Film (DTF) gang sheets directly on your product pages. 

By integrating this plugin, you connect your store to a cloud-hosted builder application. Customers can upload designs, arrange them on a canvas matching your product variations, and generate print-ready PNG or PDF files. 

### Key Features
*   **Visual Builder**: High-fidelity, drag-and-drop gang sheet builder modal.
*   **Auto-detect Dimensions**: Automatically reads sheet sizes from WooCommerce variation titles (e.g., "22x50").
*   **Multi-format Output**: Generate print-ready files in PNG or PDF formats.
*   **Crazy Packing**: Advanced auto-packing algorithm to save material space.
*   **Multi-language**: Built-in support for English, French, German, Spanish, and Arabic.
*   **Unit Support**: Switch seamlessly between Inches and Centimeters.

### ⚠️ External Service Disclosure
This plugin acts as a bridge to a cloud-based Software as a Service (SaaS). 
- **Service Used**: DTF Sheet Builder App (hosted externally).
- **Purpose**: The external builder is required to process uploaded images, perform the packing algorithm, and generate the final print-ready sheet files.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/dtfbuild` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to `WooCommerce -> DTFBuild` in your admin menu to configure your Shop ID, Environment, and other builder settings.
4. Set up a WooCommerce Variable Product with attributes for sheet sizes (e.g., Size: 22x50).
5. The builder button will automatically appear on the product page when a user selects a valid variation.

== Frequently Asked Questions ==

= Do I need an account to use this? =
Yes, the plugin requires a valid Shop ID from the DTF Sheet Builder platform.

= Does it support variable products? =
Yes! It is specifically designed to work with WooCommerce Variable Products, mapping the selected variation's dimensions to the builder canvas.

== Screenshots ==

1. The builder modal interface where customers arrange their designs.
2. The WooCommerce plugin settings panel.
3. Cart view showing the generated project details and print-ready file links.

== Changelog ==

= 0.2.9 =
* Added a new "Contact Us" tab for quick support access.
* Added a video tutorial section to the "How It Works" tab.

= 0.2.8 =
* Fixed an issue where recent DTF orders were not displaying in the Orders tab.
* Added a notification badge to the DTFBuild menu indicating the number of unread/processing DTF orders.

= 0.2.6 =
* Redesigned the plugin admin settings page to use a clean, tabbed interface.
* Added a new "Orders" tab to quickly view recent WooCommerce orders containing DTF projects.
* Added a new "How It Works" tab with a step-by-step setup guide.

= 0.2.5 =
* Added multi-language support (EN, FR, DE, ES, AR).
* Added unit persistence for customers (Inches / Centimeters).
* Added admin configuration for default language.

= 0.2.4 =
* Added support for PDF and PNG output formats.
* Added Crazy Packing feature configuration.
* Added DPI and spacing controls to the admin settings.
* Improved cart metadata UI layout.

= 0.1.0 =
* Initial release.
