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:onExtendProductPreviewHeader event

Triggered by /modules/shop/controllers/shop_products/preview.htm
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendProductPreviewHeader(Shop_Products $controller, Shop_Product $product)
$controller Shop_Products specifies the controller object.
$product Shop_Product specifies the product object.
Allows to display custom partials in the header of the Product Details page in the Administration Area. The event handler should accept two parameters - the controller object and the product object.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendProductPreviewHeader', $this, 'extend_product_preview_header');
}

public function extend_product_preview_header($controller, $product)
{
  $controller->renderPartial(PATH_APP.'/modules/mymodule/partials/_product_preview_header.htm');
}