=== StoreFixKit Back In Stock Notifier ===
Contributors: tianwenwangluo
Tags: woocommerce, back in stock, stock alert, inventory, email
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Capture WooCommerce back-in-stock requests, send restock emails, and keep clean delivery logs.

== Description ==

StoreFixKit Back In Stock Notifier adds a lightweight stock alert workflow for WooCommerce stores.

The free plugin captures shopper email requests on sold-out products, prevents duplicate active subscriptions for the same item, and sends one restock email when the product or variation returns to stock.

The plugin works entirely on the merchant's WordPress site and does not require a StoreFixKit account.

Core features:

* Back-in-stock form on sold-out simple products.
* Variation-aware stock alert form for variable products.
* Duplicate prevention for active subscribers.
* Unsubscribe token links for shopper control.
* Admin subscriber and delivery log screens.
* Email sender, subject, and intro text settings.

External services:

* None. The plugin does not send subscriber data, site data, or usage data to StoreFixKit or any other third-party service.
* Restock and test emails are sent through the WordPress `wp_mail()` function and the mail transport configured by the site owner.

== Installation ==

1. Upload the `storefixkit-back-in-stock` folder to `/wp-content/plugins/`.
2. Activate the plugin in WordPress.
3. Make sure WooCommerce is active.
4. Open WooCommerce > Back In Stock to review subscribers, logs, and email settings.

== Frequently Asked Questions ==

= Does this require WooCommerce? =

Yes. The plugin loads its stock alert workflow only when WooCommerce is active.

= Does the free plugin send emails? =

Yes. It uses WordPress `wp_mail()` for restock notifications. A transactional SMTP service is recommended for production stores.

= Does the free plugin require a StoreFixKit account? =

No. Subscriber capture, duplicate prevention, unsubscribe links, admin logs, email settings, test email, and restock notifications work locally.

= Does this plugin connect to external services? =

No. The plugin stores subscribers and delivery logs in dedicated WordPress database tables and sends email through the site's configured WordPress mail transport.

= Does uninstall remove data? =

Yes. Uninstalling the plugin deletes its settings, subscriber table, and log table.

== Screenshots ==

1. Storefront email capture form on a sold-out WooCommerce product.
2. Admin settings screen with email settings and a test email tool.
3. Subscriber table showing captured stock alert requests.

== Changelog ==

= 0.1.3 =
* Hardened public subscription rate limiting.
* Added uninstall cleanup and WordPress.org readme.
* Improved email setting validation.
* Prepared the first public WordPress.org release.
