shop:onProductOutOfStock event
The shop:onProductOutOfStock is triggered when a product stock reaches the out of stock threshold (goes out of stock). The event handler accepts one parameter, a Shop_Product object.
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onProductOutOfStock', $this, 'process_out_of_stock');
}
public function process_out_of_stock($product)
{
// Do something
//
}Next: shop:onOrderRestored event
Previous: shop:onOrderMarkedDeleted event
Return to Handling LemonStand events

