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"> </div>
<?= backend_ctr_button('Custom button', 'wand', url('mymodule/manage/product/'.$product->id)) ?>