| 开发者 | nitspatel |
|---|---|
| 更新时间 | 2026年10月18日 19:50 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[stocknotify] shortcode to place the form anywhere, including block themes.yourtheme/stocknotify/.stocknotify folder to /wp-content/plugins/, or install the zip via Plugins > Add New > Upload Plugin.Yes. When a shopper selects a variation that is out of stock, the subscription form appears automatically for that specific variation. If a different, in-stock variation is selected, the form is hidden again.
Yes. As soon as WooCommerce marks a product or variation as back in stock, every subscriber who is still waiting for it is emailed automatically. Sending happens a short time after the stock change (via WP-Cron) so that saving a product or processing an order is never slowed down by the outgoing emails. Each subscriber is only notified once per subscription.
Yes. It's a normal WooCommerce email, so it appears under WooCommerce > Settings > Emails, where you can change the subject, heading, additional text, and switch between HTML and plain text. To change the layout itself, copy templates/email/back-in-stock.php (and, for plain text, templates/email/plain/back-in-stock.php) from the plugin into yourtheme/stocknotify/email/.
Turn off "Show the form automatically on product pages" under WooCommerce > StockNotify > Settings, then add the "Back in Stock Notify" block in the editor or the Site Editor, or use the [stocknotify] shortcode ([stocknotify product_id="123"] for a specific product). The form only appears for out-of-stock products.
In a dedicated database table ({prefix}stocknotify_subscribers) created on activation, separate from WooCommerce's own tables. You can browse, search, delete and export them to CSV under WooCommerce > StockNotify.
[stocknotify] shortcode for manual placement, including block themes.