=== Parihar importer for WooCommerce ===
Contributors: sandyparihar07
Tags: woocommerce, import, export, csv, products
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Requires Plugins: woocommerce
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Import and export WooCommerce products using CSV or XML files with advanced mapping, validation, and background processing.

== Description ==

Parihar importer for WooCommerce provides a powerful yet easy-to-use interface for importing and exporting WooCommerce products via CSV or XML files.

= Features =

* **CSV & XML Import / Export**: Upload CSV or XML files via drag-and-drop; export products as CSV or XML
* **Flexible Field Mapping**: Map file columns to WooCommerce product fields with auto-mapping support
* **Product Type Support**: Simple, Variable, Variation, Grouped, External/Affiliate, Virtual, and Downloadable products
* **Bulk Processing**: Background processing for large files with configurable batch sizes
* **Validation**: Pre-import validation with detailed error reports
* **Duplicate Handling**: Multiple strategies for handling existing products (update, skip, create, fail)
* **Categories, Tags & Attributes**: Automatic creation of missing terms
* **Image Import**: Download and attach remote images from URLs
* **Saved Mappings**: Save and reuse field mappings for recurring imports
* **Export Filters**: Filter products by type, status, category, stock status, created date range, and more
* **Security**: Capability checks, nonces, sanitization, and SSRF protection
* **Error Reporting**: Detailed error logs with downloadable error CSV

= Supported Product Types =

* Simple products
* Variable products with variations
* Grouped products
* External/Affiliate products
* Virtual products
* Downloadable products
* Custom product types via adapter system

= Requirements =

* PHP 8.1 or higher
* WordPress 6.6 or higher
* WooCommerce (current stable version)

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/parihar-importer-for-woocommerce/` or install through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Ensure WooCommerce is installed and active.
4. Navigate to Products > Product Import/Export to start using the plugin.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes, WooCommerce must be installed and active.

= What CSV format is supported? =

The plugin supports CSV files with comma, semicolon, tab, or pipe delimiters. UTF-8 and UTF-8 BOM encodings are supported.

= Can I import XML files? =

Yes. Upload an XML file whose root element is &lt;products&gt;, containing one &lt;product&gt; element per product with child elements such as &lt;id/&gt;, &lt;name/&gt;, &lt;sku/&gt;, &lt;price/&gt;, &lt;description/&gt;, &lt;category/&gt;, &lt;quantity/&gt;, and &lt;status/&gt;. Elements are auto-mapped to WooCommerce product fields during preview.

= Can I import variable products with variations? =

Yes, the plugin fully supports variable products and their variations. Parent products and variations can be imported in the same CSV file.

= Is there a size limit for CSV files? =

The default maximum file size is 100MB, but this can be adjusted in the plugin settings.

= Can I save and reuse field mappings? =

Yes, you can save field mappings and load them for future imports.

= Does the plugin process large files in the background? =

Yes, files with more than 100 rows are processed in the background using Action Scheduler or WordPress cron.

== Screenshots ==

1. Import page with file upload and drag-and-drop
2. CSV preview
3. Field mapping interface
4. Import options and validation
5. Progress tracking during import
6. Export configuration
7. Import/export history
8. Plugin settings

== Changelog ==

= 1.0.2 =
* Added import and export functionality for product data to XML format
* Warning Modal Popup - Enhanced UI (fixed viewport height, custom scrollbar, sticky column headers)
* Product Import Count Limitation (CRITICAL) - validation now reports the accurate total product count instead of stopping at the first 100 rows
* Warning Details Display (UX IMPROVEMENT) - clickable warnings link opens a modal listing row number, SKU, warning message and suggested fix

= 1.0.1 =
* Initial release
* CSV import and export for all WooCommerce product types
* Field mapping with auto-mapping
* Background processing for large files
* Validation and error reporting
* Saved mappings
* Security hardening
