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.
Package info
github.com/mage2sk/module-low-stock-notification
Type:magento2-module
pkg:composer/mage2kishan/module-low-stock-notification
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0
- mage2kishan/module-core: ^1.0
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-catalog: ^104.0
- magento/module-catalog-inventory: ^100.4
- magento/module-config: ^101.2
- magento/module-cron: ^100.4
- magento/module-customer: ^103.0
- magento/module-email: ^101.1
- magento/module-store: ^101.1
- magento/module-ui: ^101.2
README
Panth Low Stock Notification β Back-in-Stock Email Alerts for Magento 2
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.
Visit our website: kishansavaliya.com Β |Β Get a quote: kishansavaliya.com/get-quote
Table of Contents
- Key Features
- How It Works
- Compatibility
- Installation
- Configuration
- Admin Dashboard
- Email Templates
- Cron Delivery
- Frontend β Hyva & Luma
- Troubleshooting
- FAQ
- Support
- About Panth Infotech
- Quick Links
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
- Download the latest release from Packagist or the Adobe Commerce Marketplace.
- Extract to
app/code/Panth/LowStockNotification/. - Install
Panth_Corethe same way if not already present. - 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 |
| 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:
- Go to Marketing β Communications β Email Templates
- Click Add New Template
- Load default template Panth Low Stock Notification β Default
- Edit HTML / text content
- 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:
- Queries products that have transitioned from out-of-stock β in-stock since the last check
- Loads matching Pending subscriptions in batches
- Dispatches each email via the configured template & sender
- Marks subscriptions as Sent (or Failed for retry)
- 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 |
|---|---|
| kishansavaliyakb@gmail.com | |
| Website | kishansavaliya.com |
| +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?
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
- π Website: kishansavaliya.com
- π¬ Get a Quote: kishansavaliya.com/get-quote
- π¨βπ» Upwork Profile (Top Rated Plus): upwork.com/freelancers/~016dd1767321100e21
- π’ Upwork Agency: upwork.com/agencies/1881421506131960778
- π¦ Packagist: packagist.org/packages/mage2kishan/module-low-stock-notification
- π GitHub: github.com/mage2sk/module-low-stock-notification
- π Adobe Marketplace: commercemarketplace.adobe.com
- π§ Email: kishansavaliyakb@gmail.com
- π± WhatsApp: +91 84012 70422
Ready to recover lost sales from out-of-stock products?
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