What this solution does
The module sends notifications to Max when specific events occur on the site. It supports standard e-commerce events related to orders, as well as infoblock events, allowing use even in Bitrix versions without the e-commerce module. For instance, you can configure a notification to Max when a new element is created in an infoblock used for collecting site leads.
Supported events:
- Adding or editing an infoblock element;
- New order;
- Order payment;
- Order status change;
- Order cancellation;
- Adding or editing a web form submission result;
- Adding a blog comment;
- User registration.
Features:
- Send notifications to multiple recipients simultaneously. You can specify individual users or send messages to a chat.
- Configure notifications to be sent to specific chat topics.
- Assign unique recipients for each event type. For example, different managers can receive alerts for new orders versus order payments.
- Select the target site for a template in settings: apply the template to all sites or to a specific one.
The 'Notifications in Max' module offers flexible customization options for notification templates using the Twig templating engine. The settings section includes detailed instructions and examples for creating templates.
Developers can integrate functionality via the internal API to send text messages from their own code at specific moments.
Processing order events requires the standard Sale module. Processing web form events requires the Form module, and blog events require the Blog module.
System requirements: PHP version 7.0 or higher, with the curl, json, and mbstring extensions installed. These conditions are automatically verified during installation.
The module is incompatible with the PHP configuration parameter mbstring.func_overload set to 2. This restriction is also checked during installation.
Supported Bitrix events:
Adding an information block element (OnAfterIBlockElementAdd);
Updating an information block element (OnAfterIBlockElementUpdate);
Creating a new order (OnSaleOrderSaved);
Order payment (OnSalePayOrder);
Changing the order status (OnSaleStatusOrder).
The 'Notifications in Max' module responds to standard system events. Order cancellation triggers OnSaleCancelOrder. Adding a web form result invokes OnAfterResultAdd, while updating it triggers OnAfterResultUpdate. Adding a blog comment uses the OnCommentAdd event. User registration is handled via OnAfterUserRegister and OnAfterUserSimpleRegister. Note that these events do not fire when a user is manually added through the admin panel or during automatic registration following an order completion. For the module to function correctly, the website must utilize these standard events.
General iT can install and configure this module and check how it works on your website.