=== Order Export ===
Contributors: yodsira
Tags: woocommerce, export, orders, csv, accounting
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Export WooCommerce orders to CSV with UTF-8 BOM (Excel opens Cyrillic correctly), drag&drop columns, date/status/product filters and a chunked memory-safe engine.

== Description ==

The accountant asks for the order spreadsheet. Again. Order Export makes it a two-click job:

* **CSV that opens correctly.** UTF-8 BOM header means Excel shows Cyrillic and other non-Latin text without mojibake.
* **Columns you choose, in the order you choose.** Drag & drop the column list: base fields (number, date, status, totals, email, billing/shipping names and addresses, payment method, coupons) plus auto-detected custom order meta.
* **Real filters.** Date period, order statuses, and "orders containing these products" - multi-select.
* **Chunked and memory-safe.** Orders are read 500 at a time straight from the posts/meta tables and written straight to the file - 10 000 orders export without breaking a sweat. A progress bar shows every chunk.

The free version exports up to 1000 orders per run. Pro raises it to 10 000, adds XLSX, line-item rows for inventory accounting, saved export profiles, and scheduled exports delivered by email or SFTP.

== Installation ==

1. Install and activate WooCommerce first.
2. Upload the `order-export` folder to `/wp-content/plugins/` or install the ZIP via Plugins - Add New.
3. Open WooCommerce - Order Export, pick filters and columns, press Export.

== Frequently Asked Questions ==

= Why does Excel show garbage with other exporters? =

They usually omit the UTF-8 BOM. We write it as the first three bytes of every CSV.

= Where are the export files stored? =

In uploads/order-export/ protected by an .htaccess deny rule. Downloads go through an authenticated admin-post handler. Files are pruned after 7 days.

== Changelog ==

= 1.0.0 =
* Initial release: chunked CSV engine, drag&drop columns, filters, progress bar.
