=== studio66 Order Copy for WooCommerce ===
Contributors:      hugostudio66amsterdam
Tags:              woocommerce, order, copy, duplicate, reorder
Requires at least: 6.0
Tested up to:      6.9
Requires PHP:      8.0
Requires Plugins:  woocommerce
WC requires at least: 3.0
WC tested up to:      9.4
Stable tag:        1.0.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

HPOS-safe order copy for WooCommerce. Duplicate any order from the order list, order detail screen, or My Account — no license key required.

== Description ==

**studio66 Order Copy for WooCommerce** adds a copy button to every WooCommerce order, letting you duplicate an order in one click. Works immediately after activation — no account or license key required.

= Features =

* Copy button in the WooCommerce order list (action buttons column)
* Copy button on the order detail screen
* "Copy order" action in the customer My Account page
* Configure default status for copied orders: Draft, Pending, or On hold
* Front-end mode: fill the customer's cart (re-order) or create a new order directly
* Pricing strategy: recalculate using current product prices, or copy exact line prices and taxes
* Control whether shipping lines are included in the copied order
* Empty cart button on the cart page (useful after re-ordering)
* HPOS (High-Performance Order Storage) compatible — uses WooCommerce CRUD throughout
* No license key required

= Available in Pro =

* Copy fees, coupons, item meta, internal and customer notes
* Advanced meta settings: denylist / allowlist to control which order meta is copied
* Built-in meta inspector: read all meta keys from any order and add them to your lists in one click

= Built for B2B and high-volume stores =

Originally built for B2B scenarios where sales teams or customers regularly repeat orders with identical or similar product selections. Copy an order, adjust quantities or products, and save — no manual re-entry required.

= Pro version =

A Pro version is available at [plugins.studio66.amsterdam](https://plugins.studio66.amsterdam) with priority support and automatic updates.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via the WordPress admin (**Plugins → Add New → Upload Plugin**).
2. Activate the plugin.
3. Go to **Order Copy** in the WooCommerce menu to configure your settings.
4. The copy button is immediately available on the orders list and order detail screen.

== External Services ==

This plugin does not connect to any external service during normal operation.

An optional Pro version is available at plugins.studio66.amsterdam. The free version makes no remote calls.

== Frequently Asked Questions ==

= Does the plugin require an account or license key? =

No. All features are fully included and work immediately after activation — no account, no sign-up, no license key required.

= Is the plugin HPOS compatible? =

Yes. The plugin uses `wc_get_orders()`, `wc_get_order()`, and `wc_create_order()` throughout, and explicitly declares HPOS compatibility via WooCommerce's FeaturesUtil.

= What is the difference between "Fill cart" and "Create new order" front-end mode? =

Fill cart adds the original order's products to the customer's current cart (like a re-order). Create new order directly creates a new order in the back-end with the configured default status.

= Can I control which meta fields are copied? =

The Pro version includes an Advanced tab where you can switch between denylist mode (copy everything except specific keys) and allowlist mode (copy only specified keys). A built-in meta inspector lets you read all meta from any order and add keys to your lists in one click. The Pro version is available at [plugins.studio66.amsterdam](https://plugins.studio66.amsterdam).

= The copy button is not visible in the order list. What should I do? =

Make sure you are on the **WooCommerce → Orders** screen (HPOS) or the legacy **Orders** post list. The button appears in the order row actions column when you hover over a row.

== Screenshots ==

1. Copy button in the WooCommerce order list.
2. Copy button on the order detail screen.
3. Basic settings — default status and front-end mode.
4. Copy settings — choose which order parts to include.
5. Instructions tab — full overview of all plugin functionality and Pro upgrade options.

== Changelog ==

= 1.0.0 =
* Initial release on WordPress.org.
* Full rebrand and restructure from studio66-order-copy-manager.
* Added Instructions tab.
* Renamed plugin header, slug, text domain, and class names to Studio66 conventions.
* Settings migration from previous version (studio66-order-copy-manager) included.
* HPOS compatibility declaration added.

== Upgrade Notice ==

= 1.0.0 =
Initial WordPress.org release. If you are upgrading from studio66-order-copy-manager, your settings will be migrated automatically on first activation.
