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

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

Event handler signature

public void event_onExtendProductPreviewToolbar(Shop_Products $controller, Shop_Product $product)
$controller Shop_Products specifies the controller object.
$product Shop_Product specifies the product object.
Allows to add new buttons to the toolbar above the Product Details form. The event handler accepts two parameter - the controller object, which you can use for rendering a partial containing new buttons and the product object. Example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendProductPreviewToolbar', $this, 'extend_product_preview_toolbar');
}

public function extend_product_preview_toolbar($controller, $product)
{
  $controller->renderPartial(PATH_APP.'/modules/mymodule/partials/_product_preview_toolbar.htm',
    array('product'=>$product));
}

// Example of the _product_preview_toolbar.htm partial

<div class="separator">&nbsp;</div>
<?= backend_ctr_button('Custom button', 'wand', url('mymodule/manage/product/'.$product->id)) ?>