=== SPP Out of Stock Signup Form ===
Contributors: simpliplugin
Tags: woocommerce, out of stock, waiting list, notify, email
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Capture lost intent on out-of-stock WooCommerce products with a simple waiting list signup form.

== Description ==

**SPP Out of Stock Signup Form** helps WooCommerce store owners capture customer interest when products are unavailable. When a product is out of stock, a lightweight signup form appears on the single product page so visitors can register to be notified when inventory returns.

= Features =

* Automatically displays a signup form on out-of-stock single product pages
* AJAX-powered submission for a smooth user experience
* Secure storage in a custom database table
* Duplicate prevention per product and email address
* Admin list view under WooCommerce
* Translation ready

= How it works =

The plugin hooks into `woocommerce_single_product_summary` and checks whether the product is in stock using WooCommerce's native stock status. If the product is out of stock, a notification signup form is displayed. Submissions are validated, rate limited, and stored securely in a custom database table.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/spp-out-of-stock-signup-form` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Ensure WooCommerce is installed and active.
4. Visit an out-of-stock product page to see the signup form.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active.

= Where can I view signups? =

Go to **WooCommerce > Out of Stock Signups** in your WordPress admin.

= Is the signup form shown for in-stock products? =

No. The form only appears when `!$product->is_in_stock()` returns true.

== Screenshots ==

1. Out-of-stock signup form on a single product page.
2. Admin signups list under WooCommerce.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
