
內容簡介
「Back in stock notifications for WooCommerce」是一個WordPress外掛,可透過為缺貨商品添加「訂閱」按鈕,延伸WooCommerce的功能。該外掛支持簡單和變體商品。
當訂閱用戶訂閱「到貨通知」時,按鈕會彈出一個模態表單。當商品重新上架時,該外掛將向訂閱用戶發送個性化電子郵件。
主要功能
✔️ 管理按鈕顏色
✔️ 個性化模態/表單
✔️ 個性化電子郵件正文
✔️ 默認電子郵件內容
✔️ 設置模式:自動/手動
✔️ 過濾、生成並以CSV格式導出訂閱用戶名單
✔️ 按產品查看訂閱用戶
✔️ 檢查每個通知的狀態
✔️ 暫停特定產品的通知發送
✔️ 按產品篩選訂閱名單
✔️ reCaptcha v2
合併標籤
可以使用合併標記(merge tags)為電子郵件個性化。
[wsnm-first-name] – 訂閱用戶的名字。
[wsnm-last-name] – 訂閱用戶的姓氏。
[wsnm-email] – 訂閱用戶的電子郵件地址。
[wsnm-product-title] – 產品標題。如果是變體產品,則還包含變體名稱。
[wsnm-product-price] – 產品價格,同時包含貨幣。
[wsnm-product-quantity] – 可供貨的數量。如果數量未受控制,則返回「無限」字串。
[wsnm-product-url] – 產品的URL。如果是變體,變體會自動選擇。
外掛標籤
開發者團隊
② 後台搜尋「Back in stock notifications for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Back in Stock Notifications for WooCommerce adds a Subscribe button to out-of-stock products. When a customer clicks it, a customisable modal form collects their email (and optionally their name). When the product is back in stock, the plugin sends them a personalised notification email automatically — or you can trigger it manually.
Supports simple and variable products.
Main Features
✔️ Subscribe button on out-of-stock product pages (simple & variable)
✔️ Subscribe button on shop & listing pages — appears on product tiles in shop, category, search, and related product sections
✔️ Button Visibility control — show on both, single product page only, shop/listing pages only, or disable entirely
✔️ Customisable modal form — title, button text, before/after text
✔️ Live form preview — see the button and modal exactly as customers will, before going live
✔️ Personalised confirmation and back-in-stock notification emails
✔️ Send Test Email — preview any email template with real product data before sending to customers
✔️ Default email templates included (ready to use out of the box)
✔️ Merge tags for dynamic content (name, email, product title, price, URL, quantity)
✔️ Automatically mode — notifications sent when WooCommerce stock status changes
✔️ Manually mode — trigger notifications from the product page when you’re ready
✔️ Pause notifications for specific products
✔️ Filter and search subscriptions by product or email
✔️ Bulk export subscribers to CSV
✔️ Customisable button colours (background & text)
✔️ First & Last Name fields (optional — enable or disable per your preference)
✔️ Duplicate subscription prevention
✔️ reCAPTCHA v2 to block spam subscriptions
✔️ HubSpot integration — auto-create or update contacts on every subscription
Subscription Form Preview
Click the Preview button on the Subscription Form settings page to open a dedicated preview page. It shows the exact Subscribe button (with your saved colours and text) on a clean canvas — click it to open the modal and inspect the layout, title, fields, and before/after text. Submission is disabled so it’s completely safe to test.
Send Test Email
Each email template (Confirmation and Back in Stock Notification) has a Send Test Email button. Click it to open a dedicated test page where you can:
Search for any product (or select a specific variation)
Enter any recipient email (pre-filled with your admin email)
Send the email immediately — merge tags are replaced with real product data
The subject is prefixed with [TEST] so you can distinguish it from live emails. Subscriber name tags ([wsnm-first-name], [wsnm-last-name]) are substituted with sample values (John / Doe).
Subscriptions
Each subscription stores:
First Name (optional)
Last Name (optional)
Email
Status (Waiting, Sent, Paused)
Product (Simple or Variable)
Duplicate subscriptions are prevented. If someone with the same email tries to subscribe to the same product again, a warning message is shown instead.
Subscriptions can be filtered by product, searched by email, and exported in CSV format from the WordPress admin.
Merge Tags
Use these tags in email subject lines and body content:
[wsnm-first-name] – Subscriber’s first name
[wsnm-last-name] – Subscriber’s last name
[wsnm-email] – Subscriber’s email address
[wsnm-product-title] – Product name (including variation name if applicable)
[wsnm-product-price] – Product price with currency symbol
[wsnm-product-quantity] – Available stock quantity, or “unlimited” if unmanaged
[wsnm-product-url] – Direct link to the product (variation pre-selected for variable products)
Integrations
reCAPTCHA v2
Add a “I’m not a robot” checkbox to the subscribe form to block automated spam submissions. Requires a free Google reCAPTCHA v2 account. Configure your Site Key and Secret Key under Settings → Integrations.
HubSpot
Connect to your HubSpot account to automatically create or update a contact every time someone subscribes:
Each subscriber is created as a HubSpot contact (email, first name, last name)
If a contact with the same email already exists, it is found and reused — no duplicates
A note is attached to the contact with the name of the subscribed product
The sync result (contact link or error) is visible on each subscription’s detail page in the WordPress admin
To connect: go to Settings → Integrations, enable HubSpot, paste your Private App token (requires the crm.objects.contacts.write scope), and click Check connection to verify.
Developer Filters
The plugin exposes the following filters:
wsnm-text-cta – Override the subscribe button text shown on the product page
wsnm-modal-title – Override the modal header text
wsnm-modal-form-button – Override the submit button text inside the modal
External Services
This plugin optionally connects to the following third-party services. These connections are only made when you explicitly enable the corresponding integration in Settings → Integrations.
Google reCAPTCHA v2 (optional)
Used to verify that subscription form submissions are made by a human. When enabled, the reCAPTCHA script is loaded from Google’s servers and the form response is verified against Google’s API.
Service: Google reCAPTCHA
Data sent: user’s reCAPTCHA response token and IP address
Privacy Policy: https://policies.google.com/privacy
Terms of Service: https://policies.google.com/terms
HubSpot (optional)
Used to automatically create or update a CRM contact when someone subscribes. Subscriber name, email, and the subscribed product name are sent to HubSpot.
Service: HubSpot CRM API
Data sent: subscriber email address, first name, last name, subscribed product name
Privacy Policy: https://legal.hubspot.com/privacy-policy
Terms of Service: https://legal.hubspot.com/terms-of-service
