Back In Stock

6 min read

Back In Stock notifications allow customers to subscribe for email alerts when out-of-stock products become available again. This feature helps you capture potential sales, understand product demand, and automatically notify interested customers when inventory is restocked.

Getting Started

  1. Navigate to Swift Commerce → Back In Stock in your WordPress admin
  2. Enable the feature using the master toggle
  3. Configure display and subscription settings in the General tab
  4. Customize the notification form appearance in the Customization tab
  5. Set up email templates in the Notifications tab

When a product is out of stock, a subscription form will automatically appear on the product page, allowing customers to enter their email address to receive notifications.


General Tab #

Display Settings

Control when and where the Back In Stock subscription form appears on your store.

SettingDescriptionDefault
Show on out of stock productsDisplay the subscription form when products are out of stockEnabled
Show on backorder productsDisplay the form for products currently on backorderDisabled
Allow guest subscriptionsLet non-logged-in users subscribe for notificationsEnabled
Auto-remove on purchaseAutomatically remove subscription when customer purchases the productEnabled

Subscription Limits

SettingDescriptionDefault
Subscription limit per userMaximum number of products a user can subscribe to (0 for unlimited)0
Minimum stock to notifyOnly send notifications when stock reaches this level1

Use Case Examples:

  • Set “Subscription limit per user” to prevent abuse from a single email subscribing to hundreds of products
  • Set “Minimum stock to notify” higher (e.g., 5) if you want to ensure adequate stock before notifying customers

Customization Tab #

Templates

Choose a pre-designed style for the subscription form or create your own:

TemplateDescription
Modern MinimalClean and simple design with no icon
Classic CardTraditional layout with bell icon
Bold GradientEye-catching gradient colors
CustomCreate your own style (Pro)

Selecting a template automatically applies its preset colors, layout, and styling options.

Form Content (Pro)

Customize all text displayed in the subscription form:

SettingDescriptionDefault
Form titleHeading displayed above the form“Get Notified When Available”
Email placeholderPlaceholder text in the email input“Enter your email address”
Button textText on the subscribe button“Notify Me”
Success messageShown after successful subscription“You’ll be notified when this product is back in stock!”
Already subscribed messageShown if user already subscribed“You’re already subscribed for this product.”
Error messageShown when subscription fails“Something went wrong. Please try again.”

Form Layout

Configure how the subscription form is displayed on product pages:

SettingDescriptionOptions
Form positionWhere the form appears relative to add-to-cartAfter add to cart / Replace add to cart / Custom (shortcode)
Form layoutArrangement of input and buttonInline (horizontal) / Stacked (vertical)
Button styleStyle of the subscribe buttonFilled / Outlined
Show bell iconDisplay notification bell iconEnabled/Disabled

Colors & Styling (Pro)

SettingDescriptionDefault
Primary colorButton and accent color#2563eb
Text colorForm text color#1f2937
Background colorForm container background#f3f4f6
Border radiusRoundness of corners6px
Show “Powered by”Display Swift Commerce brandingDisabled

Container Styling (Pro)

Fine-tune the form container appearance:

SettingDescriptionDefault
PaddingInner spacing20px
MarginOuter spacing16px
Border widthContainer border thickness1px
Border colorContainer border color#e5e7eb
Border radiusContainer corner roundness6px

Icon Styling (Pro)

Customize the notification bell icon:

SettingDescriptionDefault
Icon background colorBackground circle color#2563eb
Icon colorBell icon color#ffffff
Icon sizeSize of the icon20px
Icon border radiusRoundness (0 = square, 50 = circle)50%

Button Styling (Pro)

Customize the subscribe button:

SettingDescriptionDefault
Button background colorButton fill color#2563eb
Button text colorText on button#ffffff
Button border radiusButton corner roundness6px
Button paddingInner button spacing12px

Input Styling (Pro)

Customize the email input field:

SettingDescriptionDefault
Input border colorInput field border#d1d5db
Input background colorInput field background#ffffff
Input text colorText entered by user#1f2937
Input border radiusInput corner roundness6px

Notifications Tab #

The Notifications tab contains three sub-tabs: Email Settings, Subscriptions, and Sent Emails.

Email Settings

Configure the emails sent to customers.

Notification Email

The main email sent when a product is back in stock:

SettingDescriptionDefault
From nameSender name displayed in emailSite name
From emailSender email addressAdmin email
Subject lineEmail subject“Good news! {product_name} is back in stock!”
Email headingMain heading in email body“It’s Back!”
Body textMessage contentDefault notification text
Button textCall-to-action button“Shop Now”
Button colorButton color in email#2563eb
Include priceShow product price in emailEnabled
Include imageShow product image in emailEnabled

Available Placeholders:

PlaceholderDescription
{product_name}Name of the product
{product_price}Current product price
{product_url}Link to product page
{site_name}Your website name

Confirmation Email (Double Opt-In)

Email sent when double opt-in is enabled (Pro):

SettingDescriptionDefault
Subject lineConfirmation email subject“Confirm your stock notification subscription”
Email headingConfirmation heading“Confirm Your Subscription”
Body textConfirmation messageDefault confirmation text
Button textConfirm button“Confirm Subscription”

Note: Confirmation emails are only sent when “Require double opt-in” is enabled in General settings.

Subscriptions

View and manage all customer subscriptions:

ColumnDescription
EmailSubscriber’s email address
ProductProduct they subscribed to
StatusActive / Notified / Unsubscribed
DateWhen they subscribed
ActionsDelete subscription

*Bulk Actions (Pro):*

  • Delete selected subscriptions
  • Mark as notified
  • Export to CSV

Sent Emails

View the log of all sent notifications:

ColumnDescription
EmailRecipient email address
ProductProduct that was restocked
SentDate/time notification was sent
OpenedWhether email was opened
ClickedWhether they clicked the link
PurchasedWhether they made a purchase

Analytics Tab (Pro) #

Track the performance of your Back In Stock notifications.

Stats Overview

MetricDescription
Total SubscriptionsTotal number of subscription requests
Active SubscriptionsCurrently waiting for stock
Emails SentTotal notifications sent
Conversion RatePercentage of notifications that led to purchases

Period Selector

Filter analytics by time period:

  • Last 7 days
  • Last 30 days
  • Last 90 days

Top Products by Subscriptions

See which products have the most subscription requests, helping you understand demand and prioritize restocking.

Recent Conversions

View customers who purchased after receiving a notification, including:

  • Product purchased
  • Customer email (masked for privacy)
  • Time since purchase

How It Works #

Customer Flow

  1. Product Out of Stock – Customer visits an out-of-stock product page
  2. Subscription Form Appears – Form displays below/instead of the add-to-cart button
  3. Customer Subscribes – Customer enters their email and clicks “Notify Me”
  4. Confirmation (Optional) – If double opt-in is enabled, customer receives confirmation email
  5. Product Restocked – Store owner restocks the product
  6. Automatic Notification – System detects stock change and queues notification
  7. Email Sent – Customer receives “Back In Stock” email
  8. Purchase – Customer clicks link and purchases the product

Automatic Stock Detection

The plugin automatically monitors stock status changes via WooCommerce hooks:

  • woocommerce_product_set_stock_status
  • woocommerce_variation_set_stock_status

When a product changes from “out of stock” to “in stock”, the system:

  1. Finds all active subscriptions for that product
  2. Queues notification emails
  3. Processes queue hourly via WordPress cron
  4. Marks subscriptions as “notified”

Shortcode Usage #

If you set “Form position” to “Custom”, you can place the subscription form anywhere using the shortcode:

[swift_commerce_stock_notify]

Attributes:

AttributeDescriptionDefault
product_idSpecific product ID to show form forCurrent product

Example:

[swift_commerce_stock_notify product_id="123"]

Email Tracking #

The plugin tracks email engagement for analytics:

Tracking TypeHow It Works
Opens1×1 pixel tracking image
ClicksRedirect links through tracking endpoint
PurchasesOrder completion hooks checking subscriber email

All tracking is done via REST API endpoints that record timestamps in the notification log.


Pro Features #

Test Email (Pro)

Send a test notification email to preview how it looks:

  1. Go to Notifications tab → Email Settings
  2. Click “Send Test Email”
  3. Enter recipient email address
  4. Receive sample notification with dummy product data

Export Subscriptions (Pro)

Export all subscriptions to CSV:

  1. Go to Notifications tab → Subscriptions
  2. Click “Export to CSV”
  3. Download file with columns: ID, Email, Product ID, Product Name, Variation ID, Status, Subscribed At, Notified At

Revenue Tracking (Pro)

Track estimated revenue from Back In Stock notifications:

  • Conversions count
  • Estimated revenue (based on product prices)
  • Recent purchases from notifications

Troubleshooting #

Form Not Appearing

  1. Verify “Show on out of stock products” is enabled
  2. Confirm product stock status is “Out of stock” in WooCommerce
  3. Check if theme overrides woocommerce_single_product_summary hook
  4. Try “Custom” position and use shortcode

Emails Not Sending

  1. Check WordPress cron is running (notifications process hourly)
  2. Verify email settings (from name, from email)
  3. Test WordPress email sending with another plugin
  4. Check spam/junk folders

Duplicate Subscriptions Prevented

The database enforces unique subscriptions per product/email combination. The same email cannot subscribe twice for the same product.

Double Opt-In Not Working

  1. Confirm “Require double opt-in” is enabled in General settings
  2. Note: Double opt-in is a Pro feature
  3. Check that confirmation emails are being sent

Feature Comparison #

FeatureFreePro
Subscription form on out-of-stock products
Guest subscriptions
Automatic stock change detection
Back in stock email notifications
Basic form styling
Pre-designed templates
Email customization (from, subject, content)
Subscription management
Custom form text (title, messages)
Advanced color customization
Container styling (padding, margins)
Icon styling
Button styling
Input field styling
Double opt-in confirmation
Analytics dashboard
Conversion tracking
Revenue tracking
Export subscriptions to CSV
Test email functionality
Bulk actions
Remove branding
Updated on December 28, 2025
Scroll to Top