=== Serial Numbers & License Keys for WooCommerce ===
Contributors: shafiq1010
Tags: woocommerce, license keys, serial keys, digital products, software licenses
Requires at least: 5.6
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell license keys, serial numbers, and gift cards for Simple and Variable WooCommerce products with automatic assignment and secure storage.

== Description ==

**Serial Numbers & License Keys for WooCommerce** allows you to sell secret keys, license codes, and gift cards directly through WooCommerce.  
The plugin supports both **Simple** and **Variable Products**, enabling different keys or rules to be assigned per variation.

Serial keys are automatically assigned when an order is completed and are displayed securely on the customer’s order page and in order emails.

The plugin operates entirely within your WordPress installation and does not transmit customer or license data to external servers.

### Features

* Support for **Simple and Variable WooCommerce products**
* Automatic assignment of serial keys on order completion
* Bulk generation of keys using custom patterns (e.g. `KEY-####-####`)
* CSV import and export for easy migration
* Secure storage using a dedicated database table
* Clear overview of available and used keys
* Compatible with standard WooCommerce order emails

== Optional Extensions ==

Optional extensions may be available separately to add additional automation and management features.

* Automatic order completion for key-based products
* Low stock notifications for serial keys
* Advanced key lifecycle handling (refunds and cancellations)
* Integration with third-party invoice and PDF plugins

The free plugin functions independently and does not require the extension.

== Installation ==

1. Upload the `serial-numbers-license-keys-for-woocommerce` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Open **Serial Manager** from the WordPress admin menu.
4. Edit a WooCommerce product and enable serial key functionality in the product data panel.

== Frequently Asked Questions ==

= Does this plugin work with Variable Products? =
Yes. Serial keys and settings can be managed separately for each product variation.

= Where are serial keys stored? =
Keys are stored in a custom database table created using the WordPress database prefix for performance and scalability.

= Is any data sent to external servers? =
No. All data is stored locally within your WordPress installation.

= Does the plugin clean up data on uninstall? =
Yes. Plugin options and database tables are removed when the plugin is uninstalled.

== Screenshots ==

1. Dashboard – manage all serial keys in one place.
2. Product data – enable and configure keys for products and variations.
3. Settings – configure plugin behavior.

== Changelog ==

= 1.0.2 =
* Fix: "Headers already sent" error by adding missing PHP tag.
* Fix: CSV Export column alignment issues.

= 1.0.0 =
* Initial release.
* Support for Simple and Variable WooCommerce products.
* Bulk key generator.
* CSV import and export.
