public function onBeforeSendCustomerSmsNotification(mixed $order) : bool

Fires before sending a SMS notification to the customer.


Description

Choose at runtime whether the customer should receive SMS notifications or not.

It is possible to return true to send the notification, false to deny the notification or null to rely on the default setting.


Parameters

$order

(VAPOrderAppointment)  An object holding the details of the order.

Example

Boolean. Whether the SMS should be sent.


Example

/**
 * Choose at runtime whether the customer should receive SMS notifications.
 *
 * @param   mixed    $order  The object holding the details of the order.
 *
 * @return  boolean  Whether the SMS should be sent.
 */
public function onBeforeSendCustomerSmsNotification($order)
{
    /**
     * @todo do stuff here
     */

    return true;
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-08 16:32
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information