shop:onOrderStockChange event
The shop:onOrderStockChange event is triggered before LemonStand updates inventory for products of a specific order. You can cancel the default inventory update function by returning TRUE from the the event handler. The handler should accept two parameters - the order object (Shop_Order) and the new order status object (Shop_OrderStatus).
Event handler example:
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onOrderStockChange', $this, 'on_stock_change');
}
public function on_stock_change($order, $status)
{
// Do something
...
// Return TRUE to suppress the default LemonStand inventory update
return true;
}Next: shop:onConfigureProductsController event
Previous: shop:onOrderBeforeUpdate event
Return to Handling LemonStand events

