=== LIS - Order Division for WooCommerce ===
Contributors: liyanitsolution
Tags: split orders, order split, divide orders, split order, order manager
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily divide WooCommerce orders into multiple child orders with Automatic and Manual modes, supporting HPOS and legacy order storage.

== Description ==

**LIS - Order Division for WooCommerce** makes it easy to divide a single WooCommerce order into multiple child orders while keeping them connected to the original parent order.

Use **Automatic Division** to create child orders based on your configured division workflow, or use **Manual Division** when you need complete control over which products and quantities are moved into separate child orders.

It is useful for separate fulfillment, partial stock availability, multiple shipments, and other workflows where products from the same order need to be processed separately.

Built with a reliable object-oriented architecture and support for both **WooCommerce HPOS and legacy order storage**.

### Key Division Modes

1. **Automatic Division**: Automatically divides each product line item in an order into a separate child order.
2. **Manual Division**: Use an intuitive order editor interface to select specific line items and quantities to create a child order.

### Features

* **Automatic Line Item Division**: Divide an order containing multiple products into separate child orders with a single action.
* **Manual Product & Quantity Selection**: Choose specific products and quantities to move into a new child order.
* **Parent & Child Order Tracking**: Maintains the relationship between the original parent order and its child orders for easy order management.
* **Order Totals & Tax Recalculation**: Automatically recalculates line item totals, taxes, subtotals, and order totals after division.
* **HPOS Compatible**: Works with WooCommerce High-Performance Order Storage (HPOS) as well as legacy order storage.
* **Bulk Action Support**: Automatically divide multiple orders directly from the WooCommerce Orders list.
* **Developer-Friendly Architecture**: Built using object-oriented programming with extensible action hooks for developers and future enhancements.

== Installation ==

LIS - Order Division for WooCommerce requires WooCommerce to be installed and activated.

### Standard Installation

1. Log in to your WordPress admin dashboard.
2. Go to **Plugins → Add New Plugin**.
3. Search for **LIS - Order Division for WooCommerce**.
4. Click **Install Now**.
5. Click **Activate**.

### ZIP Installation

1. Download the **LIS - Order Division for WooCommerce** ZIP file.
2. In your WordPress dashboard, go to **Plugins → Add New Plugin → Upload Plugin**.
3. Click **Choose File** and select the plugin `.zip` file.
4. Click **Install Now**.
5. After installation is complete, click **Activate Plugin**.

### After Activation

1. Make sure **WooCommerce** is installed and activated.
2. Go to **WooCommerce → Settings** or **WooCommerce → Orders**.
3. Open an existing order to access the order division features.

== Frequently Asked Questions ==

= Does this plugin support WooCommerce HPOS (High-Performance Order Storage)? =
Yes. LIS - Order Division for WooCommerce is compatible with WooCommerce HPOS (High-Performance Order Storage) and legacy post-based order storage.

= What happens to the original order when items are divided? =
The original order remains the Parent Order. When products or quantities are divided, they are removed from the parent order and added to newly created Child Orders. The parent and child orders are linked, and their order totals and taxes are recalculated automatically.

= Can I divide a partial quantity of a single product? =
Yes. Manual Division mode allows you to specify the exact quantity to move into a Child Order. For example, you can divide 2 out of 5 units of Product A into a new Child Order.

== Changelog ==

= 1.0.0 =
* Initial public release.

== Upgrade Notice ==

= 1.0.0 =
* Initial release of LIS - Order Division for WooCommerce.