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
Magento 2 Low Stock Notification: Back-in-Stock Email Alerts (Hyva + Luma)
Let customers subscribe for back-in-stock alerts so you do not lose the sale when a product is out of stock. A "Notify Me" form appears on out-of-stock product pages, subscriptions are stored and managed in the admin, and a cron job sends the email automatically once the product comes back in stock. Native templates for Hyva (Alpine.js) and Luma are both included.
Product page: kishansavaliya.com/magento-2-low-stock-notification.html
Quick Answer
What is Panth Low Stock Notification? It is a Magento 2 extension that shows a "Notify Me When Available" form on out-of-stock product pages. Customers enter their email, and the module emails them automatically when the product is back in stock.
What does it add to my store?
- A Notify Me form on out-of-stock product pages for both guests and logged-in customers.
- An admin dashboard with KPI totals, a 7-day trend chart, most-requested products, and recent activity.
- An alert management grid where you can view, send, delete, and bulk-send notifications.
- A cron job that checks stock status and dispatches emails automatically every 6 hours.
- A customizable email template using Magento's native transactional email system.
Which themes are supported? Both Hyva (Alpine.js, no jQuery) and Luma. The correct template is picked based on the active theme.
What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free mage2kishan/module-core package.
Need Custom Magento 2 Development?
Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.
Visit our website: kishansavaliya.com | Get a quote: kishansavaliya.com/get-quote
Table of Contents
- Who Is It For
- Key Features
- Compatibility
- Installation
- Configuration
- How It Works
- Admin Dashboard and Alert Management
- FAQ
- Support
- About Panth Infotech
- Quick Links
Who Is It For
- Stores with products that go out of stock regularly and want to recover demand instead of losing those shoppers to a competitor.
- Fashion, apparel, and limited-edition stores where restocks happen on a schedule and customers want to be first in line.
- Merchants running Hyva who need a stock alert form built on Alpine.js with no jQuery or Knockout added back in.
- Admins who want visibility into which out-of-stock products have the most waiting customers, so they can prioritize restocking decisions.
- Multi-store setups where each store view needs its own alert scope and email template.
Key Features
Notify Me Form on Product Pages
- "Notify Me When Available" form shown on out-of-stock product pages for simple and configurable products.
- Guest and logged-in support so any visitor can subscribe. Guest subscriptions can be turned off in config if needed.
- Email pre-filled for logged-in customers so they can subscribe in one click.
- Duplicate protection so the same email is not recorded twice for the same product and store.
- AJAX submission with inline success and error messages.
- Fully translatable using Magento's
__()function.
Admin Dashboard
- KPI totals showing total, pending, sent, cancelled, and today's subscriptions at a glance.
- 7-day trend chart so you can see whether alert volume is growing or shrinking.
- Most-requested products table listing the out-of-stock products with the most subscribers.
- Critical stock alerts panel highlighting products with 5 or more pending subscribers.
- Recent activity feed showing the latest subscription and send events.
Admin Alert Management Grid
- Full subscriptions grid under Panth Extensions > Low Stock Alerts > Manage Alerts.
- Row actions for view, send email, and delete on individual records.
- Bulk actions for mass delete and mass send.
- Filter and search by product, email, store, and status.
Cron-Based Email Delivery
- Automatic stock check runs every 6 hours, finds products that are now back in stock, and sends pending alerts.
- Cron group: registered in the default Magento cron group so it runs on your existing cron schedule.
- Manual trigger available in the admin grid if you need to send alerts immediately.
Customizable Email Template
- Magento native transactional email template so it fits your store branding.
- Per-store-view templates so different stores or languages can use different content.
- Sender identity is configurable in admin.
Hyva and Luma Ready
- Native Hyva template built on Alpine.js, no jQuery, no RequireJS, no Knockout.
- Native Luma template using standard Magento LESS and JS patterns.
- Theme detection through
Panth_Coreso the right template is served automatically. - Works on Magento Open Source, Adobe Commerce, and Adobe Commerce Cloud.
Built to Last
- Clean, MEQP-style code with constructor dependency injection only.
- Indexed database table (
panth_stock_alert) for fast queries even with many subscriptions. - Translation ready, every label uses Magento's
__()function.
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 to 2.4.8 |
| PHP | 8.1.x, 8.2.x, 8.3.x, 8.4.x |
| Hyva Theme | 1.3+ (native Alpine.js support) |
| 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 from the product page.
- Extract it to
app/code/Panth/LowStockNotification/in your Magento install. - Make sure
Panth_Coreis installed too (required dependency). - Run the commands above starting from
bin/magento module:enable.
Verify Installation
bin/magento module:status Panth_LowStockNotification
# Expected: Module is enabled
After install, open:
Admin -> Stores -> Configuration -> Panth Extensions -> Low Stock Notification
Configuration
Go to Stores -> Configuration -> Panth Extensions -> Low Stock Notification.
| Setting | Group | Default | Description |
|---|---|---|---|
| Enable Stock Alerts | General | Yes | Master toggle. When enabled, the Notify Me form appears on out-of-stock product pages. |
| Allow Guest Subscriptions | General | Yes | Allow visitors who are not logged in to subscribe by entering their email. |
| Email Sender Identity | Email Notifications | General Contact | Which store email identity sends the back-in-stock notifications. |
| Email Template | Email Notifications | Default template | The transactional email template used for notifications. Customize under Marketing > Email Templates. |
The Design and Colors section in configuration shows instructions for adjusting form colors via the theme config file. No fields are stored in the database for colors; they come from the theme CSS.
How It Works
- A customer visits an out-of-stock product page. The Notify Me When Available form is rendered by the
Panth\LowStockNotification\Block\StockAlertblock. - The customer enters their email and submits. The form posts to the frontend controller which saves a record to the
panth_stock_alerttable. - A Magento cron job (
lowstocknotification_stock_alert) runs every 6 hours. It queries products that are now back in stock and finds matching pending subscriptions. - For each pending subscription, the cron sends the notification email using the configured transactional email template and marks the record as sent.
- Admins can see all subscriptions, dashboard stats, and send emails manually from the admin grid at Panth Extensions > Low Stock Alerts.
Admin Dashboard and Alert Management
Open Admin -> Panth Extensions -> Low Stock Alerts -> Dashboard for the overview.
The dashboard shows:
- KPI totals for total, pending, sent, cancelled, and today's alerts.
- 7-day trend chart to track subscription volume over the past week.
- Most-requested products ranked by number of pending subscribers.
- Critical alerts highlighting products with 5 or more people waiting.
- Recent activity showing the latest events.
Open Admin -> Panth Extensions -> Low Stock Alerts -> Manage Alerts for the full grid.
The grid shows every subscription with its product SKU, email address, customer name, store, status, and created date. From here you can:
- View the details of a single alert.
- Send an alert email for a single record manually.
- Delete a record.
- Mass delete or mass send using bulk actions.
FAQ
Does the Notify Me form work on Hyva themes?
Yes. The module ships a native Alpine.js template for Hyva, with no jQuery, Knockout, or RequireJS. The active theme is detected through Panth_Core and the correct template is served automatically.
Can guests subscribe without logging in?
Yes, by default. You can turn guest subscriptions off in Stores -> Configuration -> Panth Extensions -> Low Stock Notification -> General -> Allow Guest Subscriptions.
How often are emails sent?
The cron job runs every 6 hours. You can also trigger a send manually from the Manage Alerts grid in admin.
Will a customer get the same email twice?
No. Each subscription is unique per email, product, and store. Once an alert is sent, the record is marked as Sent and will not be processed again.
Which product types show the Notify Me form?
The form appears on product pages where the product is out of stock. Simple and configurable products are the primary supported types.
Can I customize the email template?
Yes. The module ships a default transactional email template. Go to Marketing -> Communications -> Email Templates, add a new template from the module default, edit the content, and assign it in the Low Stock Notification configuration.
Does it work with multi-store setups?
Yes. Subscriptions are scoped to a store view, and the email template and sender can be configured per store view.
Does it require Panth Core?
Yes. mage2kishan/module-core is a free required dependency. Composer installs it for you automatically.
What database table does it use?
Subscriptions are stored in panth_stock_alert, which has indexes on customer ID, product ID, email, and status for fast lookups.
Support
| Channel | Contact |
|---|---|
| Product Page | kishansavaliya.com/magento-2-low-stock-notification.html |
| 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?
Looking for custom Magento module development, Hyva theme work, store migrations, or performance tuning? Get a free quote in 24 hours:
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 that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.
Browse the full extension catalog on our Magento extensions page or on Packagist.
Quick Links
| Resource | Link |
|---|---|
| Product Page | magento-2-low-stock-notification.html |
| Packagist | mage2kishan/module-low-stock-notification |
| GitHub | mage2sk/module-low-stock-notification |
| Website | kishansavaliya.com |
| Free Quote | kishansavaliya.com/get-quote |
| Upwork (Top Rated Plus) | Hire Kishan Savaliya |
| Upwork Agency | Panth Infotech |
| kishansavaliyakb@gmail.com | |
| +91 84012 70422 |
Ready to recover sales from out-of-stock products?
SEO Keywords: magento 2 back in stock, magento 2 low stock alert, magento 2 back in stock notification, magento 2 email notifications, magento 2 stock alert, out of stock notification magento 2, back in stock notification magento, notify me when available magento 2, product alert magento 2, stock availability email, restock email magento 2, hyva back in stock module, hyva stock alert extension, luma stock notification, luma back in stock, magento 2 subscription alerts, magento 2 out of stock email, magento 2 waitlist extension, magento 2 inventory notification, magento 2 stock alert cron, magento 2 customer stock alert, magento 2 notify me form, magento 2.4.8 back in stock, 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