notifications_send_push

Triggered before sending of web push notifications for each order event.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['event'] string Event name.
$params['data'] array Data of the order on whose event a notification is being sent.
$params['notification_text'] string Notification text.
$params['host_client_ids'] array IDs of mobile devices to which a notification must be sent.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function notificationsSendPuish($params)
{
    shopMyPluginHelper::updatePushNotificationText($params);
}