=== Order Distribution for Woo ===
Contributors: codestackify
Tags: woocommerce, orders, distribution, pickup, delivery date
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Manage and distribute WooCommerce orders among distributors; add pickup points and delivery dates at checkout.

== Description ==

Order Distribution for Woo extends WooCommerce to help you manage the distribution of your orders seamlessly. The plugin introduces features such as distributor assignment, customizable pickup points, and delivery date selection right on the checkout page. 

It also adds a dedicated "Order Distributor" user role with a customized My Account section, allowing distributors to accept, reject, and manage their assigned orders efficiently.

### Main Features:
* **Distributor Assignment:** Automatically or manually assign orders to individual distributors or all distributors.
* **Delivery Dates & Pickup Points:** Allow customers to select a preferred delivery date and pickup point at checkout.
* **Distributor Dashboard:** Distributors get a special tab in their My Account page to view and manage their assigned orders.
* **Order Status Management:** New "Assigned" order status to keep track of orders accepted by distributors.
* **Email Notifications:** Automatically notify distributors when a new order is placed.
* **HPOS Compatible:** Fully compatible with WooCommerce High-Performance Order Storage.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/order-distribution-for-woo` directory, or install the plugin directly through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Note: WooCommerce must be installed and activated for this plugin to function.
4. Configure the settings under **WooCommerce → Settings → Order Distribution**.

== Frequently Asked Questions ==

= Does this work with High-Performance Order Storage (HPOS)? =

Yes, the plugin declares compatibility with custom order tables and functions perfectly with HPOS enabled.

= How do distributors see their orders? =

Users assigned the "Order Distributor" role will see a new "My Distributed Orders" tab on their WooCommerce My Account page where they can accept, reject, or mark orders as completed.

== Screenshots ==

1. Settings page for order distribution.
2. Adding pickup locations.
3. Order display for the user.
4. Assign order to distributor.
5. Order assignment view.
6. Accept / Reject orders from distributor dashboard.
7. Mark order as complete.
== Changelog ==

= 1.0.1 =
* WordPress coding standards alignment: text domain, bootstrap when WooCommerce is active, HPOS compatibility, uninstall routine, and admin asset enqueue.
