LemonStand Documentation

shop:onOrderItemAdded event

The shop:onOrderItemAdded event is triggered when an order item is added to an order. The event handler should accept a single parameter - the order item object (Shop_OrderItem). Event handler example:

public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onOrderItemAdded', $this, 'item_added');
}
 
public function item_added($item)
{
  // Do something
}

Next: shop:onOrderItemUpdated event
Previous: shop:onExtendOrderPreviewToolbar event
Return to Handling LemonStand events