Linux 软件免费装
Banner图

Preorders and Back in Stock Alerts for WooCommerce with Double Opt-in by Shopproof

开发者 shopproofapp
更新时间 2026年12月3日 06:12
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce double opt-in waitlist preorder back in stock

下载

0.2.1 0.1.0 0.2.0 0.2.2 0.3.0

详情介绍:

Shopproof Restock lets shoppers ask for one email when an out-of-stock product, or one option of it, is back. It also lets you sell a product as a preorder while it is on backorder, with the date it is delivered by shown before the purchase. It is built for shops in the EU, where an email address needs a clear purpose and a record of consent. Technical help, not legal advice. Back-in-stock alerts Preorders Set up with your AI assistant What it does not do Privacy The plugin stores, in your own WordPress database: the shopper's email address, the product, the language, the version of the form text they saw, and when they signed up, confirmed and got their alert. Nothing is sent to us or to any other service. Unconfirmed signups are deleted after 7 days, finished ones after a year, signups still waiting for stock after two years (or when the product is deleted), and send log lines after 30 days. To limit signups per visitor, a keyed hash of the visitor's IP address is kept for an hour. The plugin adds itself to WordPress's personal data export and erase tools and suggests a text for your privacy policy. Part of Shopproof Shopproof makes free tools for EU online shops. See also Shopproof (EU compliance hub) and Shopproof Accessibility.

安装:

  1. Install and activate the plugin. WooCommerce must be active.
  2. Open WooCommerce > Restock and check the double opt-in setting.
  3. The form shows by itself on out-of-stock product pages. To place it yourself, turn off automatic placement and use the block or the shortcode.
  4. For a preorder, edit a simple product, open Inventory, tick "Preorder" and give a delivery date or window.

屏幕截图:

  • For a product with options, the form shows only when the shopper picks an option that is out of stock.
  • A preorder: the button says "Preorder" and the delivery date shows before the purchase.
  • The delivery date in the checkout (block checkout shown; the classic one works too).
  • WooCommerce > Restock: who waits for what, who has not confirmed yet, and the CSV export with the consent record.
  • The send log: what was handed to your mailer, and when.
  • Settings: double opt-in and where the form goes.

升级注意事项:

0.3.0 The Restock screen now links a product page where you can see the signup form right after installing. Your signups and settings are kept. 0.2.2 Alerts try again by themselves after a mail outage, and the signup limit works behind a proxy or CDN. 0.2.1 Fixes saving and undoing AI assistant changes on SQLite sites, such as the WordPress.org Live Preview. 0.2.0 Adds an optional AI assistant connection, off until you turn it on. Signups, settings and preorders are kept. 0.1.0 First release.

常见问题:

Does it send emails through your servers?

No. Emails go through your shop's own mailer (WordPress and WooCommerce), like your order emails. Nothing leaves your site except those emails.

Is double opt-in required?

That depends on your country and your lawyer. Courts in Germany treat an email to an address nobody confirmed as a risk for the shop, and Austria has a similar consent rule for advertising emails, so it is on by default in both countries. You can turn it on or off for any shop under WooCommerce > Restock > Settings. Technical help, not legal advice.

What happens when the product is back?

When its stock status changes to "In stock", the alerts go out in the background, 25 at a time. A shopper who confirms later, while the product is in stock, gets their alert straight away. Confirming takes one press of a button on your site, so a mail scanner that opens links cannot confirm an address by itself.

Can I change the email texts?

Yes, the subject and heading under WooCommerce > Settings > Emails, and the whole email by copying the template to your theme (woocommerce/emails/shopproof-restock.php).

Does it work with page caching?

Yes. The form does not depend on a fresh page: it has no time-limited security code that a cached page would break. The page a shopper sees after confirming or removing their address is kept out of the cache, so their message is never shown to anyone else. Tested with Cache Enabler.

My site runs behind Cloudflare or another proxy. Does the signup limit still work?

Each visitor may sign up 10 times an hour, counted by a hash of their IP address. Behind a proxy or CDN, the server may see the proxy's address for every shopper, so they share one count. The Restock screen says when signups were stopped by the limit. If your host or proxy plugin does not already pass the shopper's address to WordPress, return it with the shopproof_restock_visitor_ip filter, for example from Cloudflare's CF-Connecting-IP header, but only when your server accepts visits from Cloudflare alone, since anyone can send that header. You can change the limit with the shopproof_restock_signups_per_hour filter.

What happens when my site cannot send email?

Alerts go through your shop's mailer. If it refuses three alerts in a row, sending pauses so the other alerts are not lost, and the Restock screen says so. It tries again by itself, one alert at a time, after 1, 2, 4, 8 and 16 hours. You can also press "Try again" next to the product once your site sends email again.

Can my AI assistant set this up for me?

Yes, if it is a desktop app that supports MCP (for example Claude Desktop or Cursor). Turn it on under WooCommerce > Restock > AI assistant and create a connection key. The site needs HTTPS. The key works only for the assistant connection, not for the rest of your site, and it is deleted after 90 days, when you turn the connection off or when you deactivate the plugin. On a multisite network, keys can be made only when the plugin is network active. The assistant shows you each change first, and you can undo it. Shoppers' email addresses stay hidden from it unless you turn that on. It cannot send emails, delete signups or turn off double opt-in for a shop in Germany or Austria.

更新日志:

0.3.0 0.2.2 0.2.1 0.2.0 0.1.0