=== Sextant Export ===
Contributors: astraiosno
Tags: woocommerce, export, excel, xlsx, products
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 5.0
WC tested up to: 10.5

A clean, no-nonsense product and price export for WooCommerce. Completely free.

== Description ==

Exports product name, SKU, prices, stock, categories, tags, images and variants to .xlsx — ready to open in Excel. No account, no payment, no setup. Just download and go.

**What you get:**

* All products exported to a clean .xlsx file — opens in Excel, LibreOffice, Google Sheets
* Simple and variable products supported — variants go on a separate sheet, linked to their parent
* Choose which fields to include: ID, SKU, name, prices, stock, categories, tags, images, permalink
* Filter by product type, status, or category before exporting
* Product count validation — compares raw database count against WooCommerce API count and warns if they differ
* Three-layer safety system — disengages automatically if something goes wrong, protecting your store from downtime
* Built-in error reporting — email a diagnostic report to our developer directly from your admin panel
* No Composer dependencies, no external libraries, no bloat

**Companion plugin:**

[Sextant Import](https://astraios.no/sextant-import-woocommerce-excel/) — import prices back into WooCommerce from the exported file after editing in Excel.

**Part of the Sextant platform by Astraios.no**
*Know your position. Chart your course.*

== Installation ==

1. Upload the plugin to `/wp-content/plugins/sextant-export`, or install through the WordPress plugins screen.
2. Activate the plugin. WooCommerce must be installed and active.
3. Go to **WooCommerce → Sextant Export** to export your products.

== Frequently Asked Questions ==

= Does this work without WooCommerce? =
No. WooCommerce must be active. The plugin deactivates itself automatically if WooCommerce is not detected.

= What PHP version do I need? =
PHP 8.0 or higher. The plugin checks this at activation.

= My server doesn't have ZipArchive. What do I do? =
ZipArchive is a standard PHP extension required to generate .xlsx files. Contact your hosting provider and ask them to enable the `zip` PHP extension.

= The product count is lower than expected. Why? =
Another plugin may be filtering product visibility. The export page shows both the raw database count and the WooCommerce API count — a warning appears if they differ.

= Can I re-import the exported file? =
Use the companion plugin [Sextant Import](https://astraios.no/sextant-import-woocommerce-excel/) to import prices back after editing in Excel.

= Why does the plugin deactivate itself on errors? =
A plugin that throws unexpected errors can cause a white screen or critical error on your storefront. Self-deactivation keeps your store running.

== Screenshots ==

1. The export settings page — choose product type, status, category filter, and fields.
2. Product count display with mismatch warning.
3. The downloaded .xlsx file opened in Excel.

== Changelog ==

= 1.2.0 =
* Rebranded as Sextant Export — part of the Sextant platform by Astraios.no
* Added: Three-layer safety system with automatic self-deactivation
* Added: Built-in error log and email reporting
* Added: Product count validation with mismatch warning
* Fixed: HTML entities in category and tag names
* Fixed: Export via admin-post.php — prevents headers-already-sent issues
* Improved: Full i18n support

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.2.0 =
Fixes a file corruption issue on some server configurations. Upgrade recommended.
