=== Product Import and Export CSV for WooCommerce ===
Contributors: soyebsalar, ankitpatel1578
Donate link: https://www.soyebsalar.in/donate/
Tags: woocommerce, import, export, csv, products
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 3.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 8.0
WC tested up to: 11.2

High-performance import & export for WooCommerce products, variations, categories, reviews, stock, coupons, and orders.

== Description ==

**Product Import and Export CSV for WooCommerce** (WooCSV Pro) is a high-performance e-commerce data pipeline for WooCommerce stores. It streamlines importing and exporting catalog, inventory, and order data with streaming CSV handling, batch AJAX execution, automated WP Cron scheduling, and platform connectors.

**Key Features:**
* **Modern UI & Dense View:** Clean, unified interface with real-time feedback, compact preview cards, and dense catalog views showing 100 products per page.
* **Pre-Flight Data Scanner:** Automated validation scanning before import to verify required columns, SKU integrity, and formatting health.
* **Live CSV Sample Preview:** Dynamic real-time preview table showing the first rows of your file before running the batch.
* **Smart Multi-Platform Mapping:** Auto-detects and matches CSV headers with built-in presets for WooCommerce, Shopify, Magento 2, PrestaShop, BigCommerce, and OpenCart.
* **Products & Variations:** Stream import and export simple, variable, grouped, and external products without timeout risks.
* **Orders Export:** Export shop orders with HPOS (High-Performance Order Storage) support.
* **Coupons & Stock:** Quick-import stock quantities and import/export WooCommerce coupons.
* **Categories & Product Reviews:** Full import and export support for taxonomies and user reviews.
* **Platform Connectors:** Connect directly to Shopify, Magento 2, remote WooCommerce stores, BigCommerce, PrestaShop, and OpenCart CSV.
* **External Storage Sync:** Push and pull exports via FTP, SFTP, AWS S3, Google Drive, Dropbox, and Microsoft OneDrive.
* **Automated Cron Schedules:** Schedule imports or exports with custom recurring intervals and email completion notices.
* **Developer Extensibility:** Full WP-CLI commands (`wp woocsv`) and REST API endpoints (`/wp-json/woocsv/v1/`).
* **High-Performance Order Storage (HPOS) & Block Compatible:** 100% compliant with WooCommerce modern features.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/product-import-and-export-csv-for-woocommerce` directory, or install through the WordPress Plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Access **WooCSV Pro** from the WordPress admin menu to start importing or exporting.

== Frequently Asked Questions ==

= Is this plugin compatible with WooCommerce HPOS? =
Yes. The plugin is fully compatible with WooCommerce High-Performance Order Storage (custom_order_tables) and Cart & Checkout Blocks.

= Can I import large CSV files without server timeouts? =
Yes. The importer uses an offset/limit batch AJAX loop and streaming file pointers (`fgetcsv`), safe for massive catalogs.

= Can I preview my CSV before importing? =
Yes! WooCSV Pro includes both a Pre-Flight Data Scanner to detect column issues and a Live Sample Data Preview table showing parsed rows prior to running.

= Where are temporary files stored? =
Temporary uploads are stored in `wp-content/uploads/woocsv-tmp/` and exports in `wp-content/uploads/woocsv-exports/`, both protected against direct HTTP directory traversal.

== Changelog ==

= 3.2.0 =
* Feature: Complete modern UI redesign featuring unified action headers, status badges, and dense product catalog views (100 items per page).
* Feature: Added Pre-Flight Data Scanner for CSV validation, header health checks, and SKU warnings.
* Feature: Added Live Sample Data Preview table to inspect parsed CSV rows before execution.
* Feature: Multi-platform smart mapping with one-click presets for WooCommerce, Shopify, Magento 2, PrestaShop, BigCommerce, and OpenCart.
* Feature: Added automatic database schema migration for `wp_woocsv_history` on admin initialization.
* Feature: Implemented full scheduled export cron execution engine for products, orders, coupons, categories, and reviews.
* Security: Added comprehensive `uninstall.php` ensuring 100% zero-orphan cleanup of custom tables, options, transients, and upload directories.
* Security: Protected `woocsv-tmp` directory with `.htaccess` and silence guard.
* Security: Removed unauthenticated development helper script.
* Performance: Added periodic post cache cycling during large export runs to prevent memory exhaustion.
* Compatibility: Declared full compatibility for WooCommerce Cart & Checkout Blocks and HPOS custom order tables.
* Maintenance: Pruned obsolete legacy assets and files.

= 3.1.0 =
* Feature: Added Orders export module with HPOS compatibility.
* Feature: Added Coupons import/export and Stock quick-import.
* Feature: Added Platform Connectors (Shopify, Magento 2, WC Remote, BigCommerce, PrestaShop, OpenCart).
* Feature: Added External Storage providers (FTP, SFTP, AWS S3, Google Drive, Dropbox, OneDrive).
* Feature: Added Export Presets and 10-tab interactive Help page.

= 2.0 =
* Update: Panel UI improvements.
* Update: Replaced legacy taxonomy calls with modern WooCommerce functions.
* Fix: Minor bug fixes and improvements.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 3.2.0 =
Recommended upgrade for all users. Enhances modern UI, adds pre-flight scanner and preview, multi-platform smart mapping, database schema migration, scheduled export cron execution, WooCommerce compatibility, and security hardening.
