This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:onBeforeOrderCustomerStatusMessageSent event

Triggered by Shop_OrderStatus
Author LemonStand eCommerce Inc.

Event handler signature

public boolean event_onBeforeOrderCustomerStatusMessageSent(Shop_Order $order, Shop_OrderStatus $status)
$order Shop_Order specifies the order object.
$status Shop_OrderStatus specifies the order status object.
{return} boolean returns FALSE if the customer notification should be stopped.
Allows to cancel the customer notification when an order changes its status. The handler should return FALSE if the notification should not be sent.
public function subscribeEvents() {
  Backend::$events->addEvent('shop:onBeforeOrderCustomerStatusMessageSent', $this, 'before_send_customer_message');
}
public function before_send_customer_message($order, $status)
{
  //skip sending customer order status change notifications for free orders
  if($order->total == 0)
    return false;
}