=== Order Items CSV for WooCommerce === Contributors: hugostudio66amsterdam Tags: woocommerce, csv, order, email, export Requires at least: 6.0 Tested up to: 7.0 Requires PHP: 7.4 Requires Plugins: woocommerce WC requires at least: 5.0 WC tested up to: 9.9 Stable tag: 1.7.0 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html Attach a CSV of order line items to WooCommerce emails. No account or license key required. Works immediately after installation. == Description == **Order Items CSV for WooCommerce** (by Studio66) adds a CSV file with order line item details as an attachment to selected WooCommerce order emails. Configure exactly which data appears in the CSV and assign different profiles to different email types. The plugin works **out of the box** — no account, no sign-up, no license key required. All features are fully available immediately after installation. = Features = * Attach CSV files to WooCommerce order emails automatically * Create multiple export profiles with different field selections and settings * Choose which fields appear as columns: order number, product name, SKU, quantity, price, and more * Attribute fields included: Colour code, Size, RRP, Brand names, Country of origin, HS code, EAN * Customise column labels for each field * Choose CSV separator: semicolon, comma, tab, or pipe * Optional UTF-8 BOM for better Microsoft Excel compatibility * Custom meta field discovery — find extra order/product meta fields from existing orders * Bulk export — export multiple orders at once into a single CSV file * Generate a test CSV for any existing order to verify output before going live * CSV generation log showing the last 100 generated files * Automatic file cleanup with configurable retention period * HPOS (High-Performance Order Storage) compatible * Compatible with Loco Translate (nl_NL, en_US, en_GB included) = Pro version = A Pro version with priority support and automatic updates is available at [plugins.studio66.amsterdam](https://plugins.studio66.amsterdam). == Installation == 1. Upload the plugin folder to `/wp-content/plugins/` or install via the WordPress admin. 2. Activate the plugin through the **Plugins** menu in WordPress. 3. The plugin works immediately — no configuration required to get started. 4. Go to **WooCommerce → Order Items CSV** to create your first export profile. 5. Assign the profile to WooCommerce email types and choose which fields to include. == Screenshots == 1. **Profiles tab** — manage export profiles; each profile defines which fields appear in the CSV. 2. **Profile editor** — drag-and-drop field ordering, custom column labels, separator and filename settings. 3. **Bulk export** — export order items from multiple orders (date range + status filter) into one CSV. 4. **Test CSV** — generate a test CSV for any existing order to verify output before going live. 5. **Log** — view the last 100 automatically generated CSV files with status and metadata. == Frequently Asked Questions == = Do I need a license key to use this plugin? = No. All features are included and work immediately after installation — no account, no sign-up, no license key required. = Is the plugin HPOS compatible? = Yes. The plugin uses `wc_get_orders()` and `wc_get_order()` and explicitly declares HPOS (High-Performance Order Storage) compatibility via WooCommerce's FeaturesUtil. = Can I translate the plugin? = Yes. The plugin is fully compatible with Loco Translate and ships with translations for nl_NL, en_US, and en_GB. = Where can I get support? = Community support is available via the WordPress.org support forum. Priority support is available with a Pro version from [plugins.studio66.amsterdam](https://plugins.studio66.amsterdam). = Can I use this plugin without WooCommerce? = No. This plugin requires WooCommerce to function, as it relies on WooCommerce order data and email hooks. == Changelog == = 1.7.0 = * Fixed: Separator selection (semicolon, comma, tab, pipe) and UTF-8 BOM are now fully configurable per profile, in compliance with WordPress.org Guideline 5. * Fixed: Profile limit removed — unlimited export profiles supported. * Removed: Bulk export (generate_bulk_csv) code removed; this feature is available in the separately hosted Pro version. * Updated: Pro version callout in Instructions tab reflects correct Pro-only features. = 1.6.0 = * Fixed: Removed all feature restrictions — all functionality is now fully available without a license key, in compliance with WordPress.org Guideline 5. * Removed: License SDK and license class (not needed in the WordPress.org version). * Unlocked: CSV separator (semicolon, comma, tab, pipe), UTF-8 BOM, multiple profiles, bulk export, attribute fields, custom field discovery, and automatic file cleanup. = 1.5.1 = * Changed: Plugin name updated to "Order Items CSV for WooCommerce" for WordPress.org compliance. * Changed: Default UI language updated to English. * Improved: HPOS compatibility explicitly declared via WooCommerce FeaturesUtil. = 1.5.0 = * New: Multiple export profiles. * New: Bulk export with date range and status filter. * New: Custom meta field discovery. = 1.4.0 = * New: Attribute fields (Colour code, Size, RRP, Brand names, Country of origin, HS code, EAN). * New: Drag-and-drop field ordering. = 1.3.1 = * Fixed: Various UI improvements. = 1.0.0 = * Initial release. == Upgrade Notice == = 1.6.0 = Important update: all features are now fully unlocked. No license key required. Update to restore full functionality.