=== Jeet Sanwal Catalog CSV Preflight ===
Contributors: jeetsanwal
Tags: csv, woocommerce, catalog, import, review
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Review a small new-simple-product CSV for basic structure, SKU and value issues before using your store's importer. No products are imported or changed.

== Description ==

Give the CSV a small check before it meets the big Import button.

Jeet Sanwal Catalog CSV Preflight reads a local file in the WordPress dashboard and shows basic observations for new simple-product records using familiar WooCommerce column names. It does not need an active WooCommerce installation and does not run the importer.

* Header-only starter CSV download with the seven recognized review fields; no sample products or store data.
* Strict UTF-8 comma CSV with an optional UTF-8 BOM, quoted commas, quoted line breaks and doubled quotes.
* Header/field-count checks and repeated nonempty SKUs within the uploaded file.
* Name, plain-decimal price, sale-price relationship, Published and numeric Stock checks within the documented format.
* Missing SKU and regular price appear as review notes rather than a blanket claim that WooCommerce rejects them.
* Type, ID or Parent values outside new simple products are clearly marked for separate review.
* Download the shown observations as a spreadsheet-safe CSV in a modern browser.
* No product lookup, import, file retention, external request or store-data mutation.

== Installation ==

1. Install this individual ZIP through Plugins > Add New > Upload Plugin and activate it.
2. Open Tools > Catalog CSV preflight. Optionally choose Download starter CSV, then add your own product rows in your CSV editor.
3. Choose a UTF-8 comma CSV containing a header and at least one new simple-product record, then select Review this CSV.
4. Read basic issues, review notes and outside-scope records. Correct the original file in your normal CSV editor when appropriate.
5. Use Download these observations as CSV if you need a working copy. Use your store's actual importer only after its own mapping and staging checks.

== Scope and limits ==

The file limit is 1 MiB (1,048,576 bytes), with 500 nonblank data records, 50 columns, 8 KiB per field and 100 bytes per header. A Name column is required for this new-product review. Blank logical records are skipped. The header is record 1; quoted line breaks may make a logical record span several physical lines. Only the first 250 observations are shown/exported, with an explicit omitted-observation count. The complete bounded file is still checked.

Recognized columns are Type, SKU, Name, Regular price, Sale price, Published and Stock, matched case-insensitively after header trimming. ID and Parent are used only to mark update/parent-linked records outside scope. Unknown columns are not validated. A blank Type or simple is in scope; compound, variable, variation, grouped, external, virtual or downloadable type declarations need the actual importer review separately. Existing-product updates are outside scope.

SKU comparison trims values and ignores ASCII letter case within this file only. It does not normalize every Unicode case variant or compare the existing store. A missing SKU is a review note. Prices use unsigned plain decimals with at most 12 whole digits and 6 decimal places; currency symbols, localized separators and exponent notation are outside this check. Sale values not lower than the regular price produce a review note. This check recognizes Published values -1, 0, 1, 2, true and false. Stock accepts a signed number with at most 9 whole digits and 6 decimal places; fractional stock gets a setup-specific review note, and an empty Stock is permitted.

Results describe this preflight's narrow format, not everything WooCommerce or an extension can accept. Images, dates, categories, tax, descriptions, custom metadata, permissions, matching existing products, importer mapping, locale-specific behavior and extension fields are not verified. No listed issue is not a guarantee of a successful or safe import. Keep a site backup and test the actual import on staging.

With optional installation reports off, access requires manage_options or manage_woocommerce. Upload review requires a valid WordPress nonce and a genuine HTTP-uploaded temporary file. Arbitrary server paths are not accepted. Hosting upload limits may be lower. All features are free and ad-free. No external account, telemetry, visitor credit or automatic update service is included.

== Privacy and storage ==

With optional installation reports off, the plugin reads the PHP temporary upload during the request without moving it into the Media Library or a permanent plugin directory. It creates no options, records, retained CSV or saved reports. Normal PHP request cleanup handles the temporary upload. Hosting request buffers/logs and browser caches are outside the plugin's control. The current report can remain in your browser, and a downloaded observations CSV remains wherever you save it. The export includes only the shown issue rows, not your full uploaded catalog. Do not put secrets or customer records in a product CSV.

There is nothing created by this plugin to remove on deactivation/uninstall. Your original local CSV and downloaded working copies are not deleted.

== Frequently Asked Questions ==

= Does it import or change products? =
No. It reads the uploaded file and shows observations. There is no product API call, catalog query, stock change or importer action.

= Does a clean review mean the importer will succeed? =
No. It is a bounded basic preflight. The actual importer, column mapping, images, existing data and extension behavior still require review.

= Is WooCommerce required? =
No. WordPress administrators can use it before a store is installed. Store managers with manage_woocommerce can also use the tool.

= Why is a missing SKU only a note? =
A new product can intentionally omit a SKU. The note asks you to consider future matching and inventory workflows; it is not a universal importer requirement.

= Is everything free? =
Yes. All included features are free and ad-free under GPL-2.0-or-later, with no signup or paid tier.

== Updating an existing installation ==

Download this plugin's latest individual ZIP from https://jeetsanwal.in/tools/jeet-catalog-csv-preflight . Back up the site and try the replacement on staging. Use Plugins > Add New > Upload Plugin and choose Replace current with uploaded. Do not uninstall as an update step. Confirm the displayed version and review a small known CSV after updating. Updates are manual; the Update URI prevents unrelated directory replacements but does not provide an updater. For file rollback, upload your saved previous ZIP; use a site backup for database restoration if another change affected data.

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.1.1 =
* Updated the product display name to Jeet Sanwal Catalog CSV Preflight and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.1.0 =
* Added a protected header-only starter CSV download with the seven recognized review fields; add your own rows before review or import.


= 1.0.0 =
* Initial bounded new-simple-product CSV review with explicit scope, private upload handling and observation export.

Created by Jeet Sanwal — https://jeetsanwal.in
Support: https://jeetsanwal.in/plugin-support
