=== Liftly Back in Stock Notifications & Waitlist for WooCommerce ===
Contributors: taylerz
Tags: back in stock, waitlist, out of stock, stock notification, restock
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn sold-out products into sales: shoppers join a waitlist in one step and get an email the moment the item is back in stock.

== Description ==

**Every sold-out page is a sale waiting to happen. Catch it.**

Liftly Back in Stock puts a friendly waitlist form on out-of-stock products, emails every waiting shopper the moment you restock, and shows you how much revenue those emails won back.

Say your $29 Linen Apron sells out and 24 shoppers leave their email. You restock it. Twenty-four emails go out on their own, each with a button straight to the product, and the Overview counts every order they bring back, in dollars.

= Why store owners choose it =

* **Restock emails that really go out.** They are sent the moment stock returns, however it changes: edited by hand, imported, or put back by a cancelled order. They leave in the background in batches, so your store stays fast.
* **See the money you won back.** The Overview shows shoppers waiting, emails sent, purchases and recovered revenue, plus requests per day.
* **Works out of the box.** Activate it and the form is already on your sold-out products. Setup is optional.
* **Every size and variation.** On a variable product the form appears when a shopper picks a sold-out variation, and only for that one.
* **Know what to restock first.** "Most wanted" ranks sold-out products by the number of shoppers waiting, with a Notify now button when you have stock again.
* **A list of real shoppers.** Guests confirm their email with one tap before they join, so every restock email reaches someone who asked for it. Logged-in shoppers join in one click.
* **Looks like your store.** Edit the texts and the accent colour with a live preview, and style the email in WooCommerce with your logo and colours.
* **Privacy built in.** An optional consent checkbox, a one-click unsubscribe link in every email, and support for the WordPress personal data export and erase tools.

= How it works =

1. **Install and activate.** Sold-out products show the waitlist form right away.
2. **Restock as usual.** Change the stock by hand, import it, or let a cancelled order put it back.
3. **Watch the orders come back.** Everyone waiting gets the email, and the Overview shows what it earned.

= Works with =

* Classic and block themes, such as Storefront and Twenty Twenty-Five
* Simple and variable products
* The classic and the block checkout, and High-Performance Order Storage (HPOS)
* Phones, tablets and desktops, left-to-right and right-to-left languages
* Page caching: guests join through a light request to your site
* The `[liftly_back_in_stock]` shortcode, to place the form anywhere

= Privacy and speed =

Everything runs inside your WordPress site: no account, no external service, no tracking. The form's small stylesheet and script load only on product pages.

= More from Liftly =

* Liftly Free Shipping Bar & Cart Goals: show shoppers how close they are to free shipping.
* Liftly Estimated Delivery Date & Order Countdown: promise a real delivery date on every product.
* Liftly Tiered Pricing & Quantity Discounts: a clear price table that sells the bigger pack.

== Installation ==

1. Install and activate WooCommerce.
2. Install Liftly Back in Stock from Plugins → Add New, or upload the plugin folder to `/wp-content/plugins/`.
3. Activate it. Sold-out products show the waitlist form right away.
4. Open WooCommerce → Back in Stock to change the texts, the colour and the emails.

== Frequently Asked Questions ==

= Does it work out of the box? =

Yes. Activate it and the waitlist form appears on every sold-out product. The settings only change how it looks and who can join.

= Where does the form appear? =

On out-of-stock simple products, and on variable products when the shopper chooses a variation that is out of stock. You can also show it on backorder products, hide it for a single product, or place it anywhere with `[liftly_back_in_stock product_id="123"]`.

= Does it work with block themes and the block checkout? =

Yes. The form appears in block themes such as Twenty Twenty-Five and in classic themes such as Storefront, and purchases are recognized from both the block checkout and the classic checkout.

= Does it support variable products? =

Yes. Shoppers join the waitlist for the exact size or variation they want, and only they are emailed when that variation is back.

= When are the emails sent? =

As soon as a product or variation is back in stock, whether you change the stock by hand, import it, or a cancelled order puts it back. Emails go out in the background in batches of 50 by default. You can also turn automatic sending off and use Notify now instead.

= How is recovered revenue counted? =

When a shopper opens the product from the email and orders it, or orders it with the same email address within 30 days, the order line counts as recovered revenue. Cancelled, failed and refunded orders are taken out again.

= Can I change the email? =

Yes. Go to WooCommerce → Settings → Emails → Back in stock to edit the subject, heading, message and button. The email uses your WooCommerce email design, and themes can override its template.

= Is it ready for privacy rules like GDPR? =

Yes. You can add a consent checkbox (optional or required) with a link to your privacy policy. Guests confirm their email with one tap before they join, every email to your list has a one-click unsubscribe link, and waitlist requests appear in the WordPress personal data export and erase tools.

= Will it slow down my store? =

No. The form's small stylesheet and script load only on product pages, and emails are sent in the background in small batches.

= Does it need an account or an external service? =

No. Everything runs inside your WordPress site, and nothing is sent to an outside service.

= What happens to my data if I delete the plugin? =

Nothing is removed by default, so you can reinstall without losing your waitlist. If you prefer a clean sweep, turn on "Remove all data when the plugin is deleted" in the settings first.

= Can I translate it? =

Yes. All texts are translatable, and the form texts can be changed right in the settings.

== Screenshots ==

1. Turn sold-out pages into a waitlist: shoppers leave their email in one step, right on the product page.
2. Everyone waiting hears the moment it's back: a clean restock email in your store's colors with a button straight to the product.
3. Joining takes one tap on any device, with an instant "You're on the list" confirmation.
4. Works for every size and variation: the form appears for the sold-out variation a shopper picks.
5. See the revenue your emails win back: shoppers waiting, emails sent, purchases and recovered revenue at a glance.
6. Know exactly who is waiting: search, filter by product or status, and export to CSV.
7. Tune the form with a live preview: change the texts, the accent color and who can join.
8. A clean list of real shoppers: guests confirm with one tap, with consent and batch sending built in.

== Changelog ==

= 1.0.0 =
* First release.
