=== DemandLoop — Back in Stock Notifications ===
Contributors: demandloop
Tags: back in stock, restock notifications, woocommerce, inventory alerts, waitlist
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.5
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically notify customers when out-of-stock products are back. Works with WooCommerce variable and simple products.

== Description ==

DemandLoop automatically captures demand for your out-of-stock products and sends instant email and web push notifications the moment inventory is restocked.

**Features:**

* Automatic "Notify Me" widget on out-of-stock product pages
* Email notifications when products are back in stock
* Web push notifications (optional)
* Works with simple and variable products
* Variant-aware: tracks stock per variation
* GDPR-compliant with built-in consent management
* Responsive, accessible widget
* External dashboard for analytics and configuration
* No impact on store performance (widget loaded from CDN)

**How it works:**

1. Install and activate the plugin
2. Connect to your DemandLoop account
3. A "Notify Me" widget automatically appears on out-of-stock products
4. Customers enter their email to subscribe
5. When you restock, subscribers are notified instantly

**Requirements:**

* WooCommerce 7.0 or higher
* PHP 7.4 or higher
* A DemandLoop account (free plan available)

== Installation ==

1. Upload the `demandloop-back-in-stock` folder to `/wp-content/plugins/`
2. Activate the plugin through the "Plugins" menu in WordPress
3. Go to WooCommerce → Settings → DemandLoop
4. Click "Connect to DemandLoop" and follow the setup wizard

== Frequently Asked Questions ==

= Do I need a DemandLoop account? =

Yes, a free DemandLoop account is required. You can create one during the connection setup.

= Does it work with variable products? =

Yes! The widget detects which variation is selected and tracks stock per variation.

= Where do I configure notification settings? =

All notification settings (email templates, timing, branding) are managed in the DemandLoop dashboard, accessible from WooCommerce → Settings → DemandLoop.

= Does the plugin affect my store's performance? =

No. The notification widget is loaded asynchronously from the DemandLoop CDN, so it does not impact your page load times.

= Is it GDPR compliant? =

Yes. The subscription form includes a consent checkbox, and customers can unsubscribe at any time via the link in notification emails.

== Changelog ==

= 1.0.0 =
* Initial release
* Back-in-stock email notifications
* Web push notifications
* WooCommerce simple and variable product support
* Widget injection on product pages
* WooCommerce Settings tab integration
* HPOS compatibility

== Upgrade Notice ==

= 1.0.0 =
Initial release of DemandLoop — Back in Stock Notifications.
