mage2kishan/module-low-stock-notification

Magento 2 Low Stock Notification module - allows customers to subscribe for back-in-stock email alerts on out-of-stock products. Compatible with Luma and Hyva themes.

Maintainers

Package info

github.com/mage2sk/module-low-stock-notification

Type:magento2-module

pkg:composer/mage2kishan/module-low-stock-notification

Statistics

Installs: 8

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-04-17 15:00 UTC

This package is auto-updated.

Last update: 2026-04-17 15:02:40 UTC


README

Panth Low Stock Notification β€” Back-in-Stock Email Alerts for Magento 2

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva + Luma Packagist Upwork Top Rated Plus Panth Infotech Agency Website Get a Quote

Never lose an out-of-stock sale again. Let customers subscribe for back-in-stock email alerts directly from the product page, manage every subscription from a powerful admin dashboard, send notifications automatically via cron, place the "Notify Me" button exactly where you want it, and customize the email template to match your brand β€” fully compatible with both Hyva and Luma themes.

Panth Low Stock Notification turns every "Out of Stock" product page into a future sale. When a product is unavailable, a Notify Me When Available form appears so shoppers (guest or logged-in) can submit their email and get notified automatically the moment the product is restocked. Store admins get a dedicated subscription dashboard to view, filter, export, and manually trigger alerts. A built-in cron job watches stock-status changes and dispatches branded email notifications using a fully customizable email template β€” no manual work required.

The extension supports configurable button placement (before/after add-to-cart, custom container), works seamlessly with simple, configurable, bundle, and grouped products, and ships with production-ready templates for both Hyva (Alpine.js + Tailwind) and Luma (Knockout + LESS) storefronts. MEQP-compliant, translation-ready, and built on the Panth Core foundation.

πŸš€ Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours β€” custom modules, Hyva themes, performance optimization, M1β†’M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

πŸ† Kishan Savaliya

Top Rated Plus on Upwork

Hire on Upwork

100% Job Success β€’ 10+ Years Magento Experience Adobe Certified β€’ Hyva Specialist

🏒 Panth Infotech Agency

Magento Development Team

Visit Agency

Custom Modules β€’ Theme Design β€’ Migrations Performance β€’ SEO β€’ Adobe Commerce Cloud

Visit our website: kishansavaliya.com Β |Β  Get a quote: kishansavaliya.com/get-quote

Table of Contents

Key Features

Customer-Facing

  • Notify Me form on every out-of-stock product page (simple, configurable, bundle, grouped)
  • Guest & logged-in support β€” email is auto-populated for logged-in customers
  • Per-store-view subscriptions β€” alerts are respected across multi-store installations
  • Double-opt protection β€” duplicate submissions are deduplicated silently
  • My Account panel β€” logged-in customers can view and cancel their own alerts
  • Fully translatable β€” all strings use Magento __() translation

Admin Dashboard

  • Subscriptions grid β€” filter by product, email, store, status, date range
  • Bulk actions β€” delete, mark as sent, resend alert
  • Manual trigger β€” force-send notifications for selected subscriptions
  • CSV / XML export β€” standard Magento export actions
  • Product-level stats β€” see how many customers are waiting per SKU
  • Low-stock dashboard widget (optional) β€” highlight high-demand out-of-stock products

Cron-Based Email Delivery

  • Automatic detection β€” cron watches stock status transitions and dispatches alerts when a product flips from out-of-stock β†’ in-stock
  • Batch processing β€” configurable batch size to protect SMTP deliverability
  • Retry logic β€” failed sends are retried on the next cron cycle
  • Audit log β€” every send is recorded with timestamp and delivery status
  • Configurable schedule β€” default every 5 minutes, adjustable via admin

Configurable Placement

  • Before or after Add-to-Cart β€” pick the position via admin
  • Custom container β€” emit the form into any layout container by name
  • Enable/disable per product type β€” simple, configurable, bundle, grouped, virtual, downloadable
  • Category & attribute-based rules (optional) β€” show only on selected categories or brands

Email Templates

  • Customizable template β€” Magento native transactional email template
  • Variables supported β€” product name, URL, image, price, customer name, store name
  • Per-store-view templates β€” different content per store or language
  • HTML + plain-text β€” accessible multi-part email
  • Preview & test-send from admin

Theme Support

  • Hyva β€” Alpine.js + Tailwind CSS, no RequireJS, no jQuery
  • Luma β€” Knockout + LESS, full responsive design
  • Auto-detection via Panth_Core β€” correct template served automatically

Security & Performance

  • MEQP compliant β€” passes Adobe's Magento Extension Quality Program
  • CSRF & form-key protected
  • Email validation + rate limiting to prevent abuse
  • Indexed subscription table β€” scales to millions of subscriptions
  • Zero frontend performance impact β€” form is rendered only on out-of-stock pages

How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Customer visits product   β”‚
β”‚ page (Out of Stock)       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
             β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ "Notify Me" form is shown β”‚
β”‚ (Hyva or Luma template)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚ submits email
             β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Subscription saved to DB  β”‚
β”‚ (panth_low_stock_subscr.) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
             β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Cron watches stock status β”‚
β”‚ transitions every 5 min   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚ product back in stock
             β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Email sent via template   β”‚
β”‚ β†’ Subscription marked SENTβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 β€” 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
MySQL 8.0+
MariaDB 10.4+
Hyva Theme 1.3+
Luma Theme Native support
Required Dependency mage2kishan/module-core (free)

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-low-stock-notification
bin/magento module:enable Panth_Core Panth_LowStockNotification
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release from Packagist or the Adobe Commerce Marketplace.
  2. Extract to app/code/Panth/LowStockNotification/.
  3. Install Panth_Core the same way if not already present.
  4. Run the same commands shown above.

Verify Installation

bin/magento module:status Panth_LowStockNotification
# Expected: Module is enabled

Then visit:

Admin β†’ Stores β†’ Configuration β†’ Panth Extensions β†’ Low Stock Notification

Configuration

Navigate to Stores β†’ Configuration β†’ Panth Extensions β†’ Low Stock Notification.

General

Setting Default Description
Enable Module Yes Master on/off toggle
Allow Guest Subscriptions Yes Let unauthenticated customers subscribe
Require Customer Login No Force shoppers to log in before subscribing
Success Message Thank you β€” we'll email you when it's back! Shown after successful submission

Button / Form Placement

Setting Default Description
Position After Add to Cart Before Add to Cart / After Add to Cart / Custom Container
Custom Container Name (empty) Layout container to render into when Position = Custom
Enabled Product Types simple, configurable, bundle, grouped Multi-select
Restrict to Categories (none) Optional category filter

Email

Setting Default Description
Sender General Contact Magento email sender identity
Email Template Panth Low Stock Notification β€” Default Customize per store view
Send Copy To (empty) Optional BCC for admin audit

Cron

Setting Default Description
Cron Schedule */5 * * * * Cron expression for the delivery worker
Batch Size 50 Max emails sent per cron run
Retry Failed Sends Yes Re-attempt on the next cycle

Admin Dashboard

Navigate to Panth Infotech β†’ Low Stock Notification β†’ Subscriptions.

You'll find:

  • Full subscriptions grid β€” Product SKU, email, customer name, store, status (Pending / Sent / Cancelled), created date
  • Bulk actions β€” Delete, Mark as Sent, Resend Email
  • Row actions β€” View details, Send Now, Cancel
  • Filters β€” by product, email, store, status, date range
  • Exports β€” CSV / XML via the standard Magento export button

A waiting customers widget can also be added to any dashboard page that shows top out-of-stock products sorted by number of subscribers β€” perfect for prioritising restocks.

Email Templates

The module ships with a default transactional email template:

  • Identifier: panth_lowstock_notification_template
  • Location: view/frontend/email/notification.html
  • Variables available:
    • {{var product.name}}
    • {{var product.url}}
    • {{var product.image}}
    • {{var product.price}}
    • {{var customer.name}}
    • {{var store.name}}
    • {{var unsubscribe_url}}

To customize:

  1. Go to Marketing β†’ Communications β†’ Email Templates
  2. Click Add New Template
  3. Load default template Panth Low Stock Notification β€” Default
  4. Edit HTML / text content
  5. Save and assign it in the module configuration

Cron Delivery

Panth Low Stock Notification registers a cron group:

<group id="panth_low_stock">
    <job name="panth_low_stock_notify" instance="Panth\LowStockNotification\Cron\SendNotifications" method="execute">
        <schedule>*/5 * * * *</schedule>
    </job>
</group>

On every run, the cron:

  1. Queries products that have transitioned from out-of-stock β†’ in-stock since the last check
  2. Loads matching Pending subscriptions in batches
  3. Dispatches each email via the configured template & sender
  4. Marks subscriptions as Sent (or Failed for retry)
  5. Writes an entry to var/log/panth_low_stock.log

Ensure your server cron is running:

bin/magento cron:run --group=panth_low_stock

Frontend β€” Hyva & Luma

The correct template is auto-selected by Panth_Core's theme detection:

  • Hyva: view/frontend/templates/product/notify.phtml β€” Alpine.js form, Tailwind classes, no RequireJS
  • Luma: view/frontend/templates/product/notify.phtml β€” Knockout/jQuery form, responsive LESS styles

Both templates:

  • Show only when the product is out of stock
  • Pre-fill the email field for logged-in customers
  • Submit via AJAX to /panth_lowstock/subscribe/save
  • Display success / error messages inline
  • Are fully translatable

Troubleshooting

Issue Cause Resolution
"Notify Me" form not visible Product is in stock or module disabled Confirm stock status and module config
Emails not being sent Magento cron not running Run bin/magento cron:run --group=panth_low_stock
Subscriptions not saving Form key / cache issue bin/magento cache:flush
Wrong template (Luma on Hyva) Panth_Core not installed composer require mage2kishan/module-core
Duplicate emails SMTP retry collision Enable "Retry Failed Sends" = No temporarily

Enable Debug Mode in Panth Core settings to see detailed logs at var/log/panth_low_stock.log.

FAQ

Does it work for guests?

Yes, guests can subscribe with their email address. You can optionally require login via admin config.

Does it support configurable / bundle products?

Yes β€” simple, configurable, bundle, grouped, virtual, and downloadable product types are all supported.

Will customers get duplicate emails?

No. Each subscription is unique per (email, product, store) and marked Sent after delivery. Duplicates are silently deduplicated.

Is it compatible with Hyva?

Yes β€” Alpine.js + Tailwind template included, detected automatically via Panth Core.

Does it require Panth Core?

Yes. Panth Core is a free required dependency (Composer handles it automatically).

Can I customize the email?

Yes β€” standard Magento transactional email template editor; supports HTML, plain-text, and per-store-view overrides.

How often are emails sent?

By default every 5 minutes. The schedule and batch size are fully configurable.

Can customers unsubscribe?

Yes. Logged-in customers manage their subscriptions in My Account β†’ Stock Alerts. Every email also includes an unsubscribe link.

Is it multi-store / multi-language safe?

Yes β€” subscriptions are scoped per store view, templates can be localized, and all strings are translatable.

Does the extension slow down product pages?

No. The form is rendered server-side only on out-of-stock pages. No JavaScript is loaded for in-stock products.

Support

Channel Contact
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-low-stock-notification/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

πŸ’Ό Need Custom Magento Development?

Get a Free Quote

Hire on Upwork Β Β  Visit Agency Β Β  Visit Website

License

Proprietary β€” see LICENSE.txt. Single-install license unless otherwise specified on the Adobe Commerce Marketplace.

About Panth Infotech

Built and maintained by Kishan Savaliya β€” kishansavaliya.com β€” a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency specializing in high-quality, security-focused extensions and themes for both Hyva and Luma storefronts. Our extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management β€” over 34 modules built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on the Adobe Commerce Marketplace or Packagist.

Quick Links

Ready to recover lost sales from out-of-stock products?
Get Started

SEO Keywords: magento 2 back in stock, magento 2 low stock alert, magento 2 email notifications, magento 2 stock alert, out of stock notification, back in stock notification magento 2, notify me when available magento, product alert magento 2, stock availability email, restock email magento, hyva back in stock module, luma stock alert extension, magento 2 subscription alerts, magento 2 out of stock email, magento 2 waitlist, magento 2 inventory notification, magento 2.4.8 stock alert, php 8.4 magento extension, panth infotech, mage2kishan, mage2sk, hire magento developer, top rated plus upwork magento, kishan savaliya, custom magento development, magento 2 hyva development, magento 2 luma customization, magento 2 conversion optimization, magento 2 email marketing, magento 2 cron notifications, magento 2 customer engagement