magematch / magento2-inventory-alert
Magento 2 module that monitors inventory thresholds and delivers scheduled low-stock digest emails to administrators.
Package info
github.com/magematch/magento2-inventory-alert
Type:magento2-module
pkg:composer/magematch/magento2-inventory-alert
Requires
- php: >=8.1
- magento/framework: ^103.0
README
Free, open-source Magento 2 extension
by Arjun Dhiman — Adobe Commerce Certified Master
Part of the MageMatch developer ecosystem
MageMatch_LowStockNotification monitors inventory thresholds and delivers a scheduled low-stock digest email to the configured admin recipient.
Features
- Scans inventory using Magento's built-in reports low-stock collection.
- Delivers a digest email listing each at-risk product with name, SKU, and current quantity.
- Enable/disable toggle and recipient address configurable in admin.
- Swappable transactional email template.
- Zero legacy code — built on
DataPatchInterface, constructor promotion, anddeclare(strict_types=1). - Compatible with Magento 2.4.4+ and PHP 8.1 through 8.4.
Configuration
In admin, go to:
Stores > Configuration > Catalog > Inventory > Stock Notification Email Setting
Configure:
- Enable
- Email Template
- Admin Email Address
Cron
- Cron group:
stock_notification_cron_group - Job:
low_stock_notification_cronjob - Schedule: every minute (
*/1 * * * *)
You can adjust the schedule in etc/crontab.xml.
Module Structure
Cron/Notification.phpbuilds low-stock data and triggers notification emails.Helper/Email.phphandles transport/template email sending.etc/adminhtml/system.xmldefines admin configuration fields.etc/crontab.xmlandetc/cron_groups.xmldefine cron scheduling.etc/email_templates.xmlregisters the transactional email template.view/frontend/email/stock_notification.htmlis the default email template.
CI Matrix
This repository includes a GitHub Actions workflow at .github/workflows/ci.yml.
Validation runs on:
- PHP
8.2 - PHP
8.4
It validates Composer metadata, PHP syntax, and XML well-formedness.
Install commands by environment
Stable production install:
composer require magematch/magento2-inventory-alert:^1.0
Staging/dev install (before first stable tag is visible):
composer require magematch/magento2-inventory-alert:"dev-main@dev"
Installation
composer require magematch/magento2-inventory-alert bin/magento module:enable MageMatch_InventoryAlert bin/magento setup:upgrade bin/magento cache:clean
Compatibility
- Magento Open Source 2.4.x
- Adobe Commerce 2.4.x
- PHP 8.1, 8.2, 8.3
Support & Custom Development
Need custom Magento development?
Find vetted Adobe Commerce developers at
magematch.com
License
MIT License — free to use commercially