notifications_send_one.before

Triggered before sending of a test message from the notification settings screen.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['id'] int Notification ID from 'shop_notification' table.
$params['notifications'] array Tested notification’s data.
$params['data'] array The properties of an order selected for test notification sending.
$params['data']['order'] array Order data.
$params['data']['customer'] shopCustomer Customer handling class instance.
$params['data']['status'] string Order status name.
$params['to'] string Test message recipient email address.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function notificationsSendOneBefore($params)
{
    shopMyPluginHelper::updateTestMessageData($params]);
}