Developing a Stock Notification Module for 1C-Bitrix
Customer views out-of-stock product, wants to know when it's back. Stock notification module lets users subscribe to availability alerts.
Features
- "Notify me" button — on out-of-stock product page
- Email notification — when product back in stock
- SMS notification — urgent alert
- Push notification — in-app alert
- Manage subscriptions — in personal account
- Admin control — enable/disable per product or globally
Data Model
Table b_stock_notification_subscription:
- user_id
- product_id
- notification_type (email, sms, push)
- status (active, sent, cancelled)
- created_at
Implementation
On stock change, trigger event → check subscriptions → send notifications:
AddEventHandler('catalog', 'OnAfterStoreProductUpdate', function($product_id) {
$subs = getSubscriptions($product_id);
foreach ($subs as $sub) {
sendNotification($sub);
}
});
Development Timeline
| Stage | Duration |
|---|---|
| Basic (email notifications) | 3–5 days |
| Multi-channel (SMS, push) | 8–10 days |
| Analytics & management | 12–14 days |







