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

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

Event handler signature

public array event_onExtendProductPreviewTabs(Shop_Products $controller, Shop_Product $product)
$controller Shop_Products specifies the controller object.
$product Shop_Product specifies the product object.
{return} array returns an array of tab names and tab partial paths.
Allows to display custom tabs on the Product Details page in the Administration Area. The event handler should accept two parameters - the controller object and the product object. The handler should return an associative array of tab titles and corresponding tab partials.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendProductPreviewTabs', $this, 'extend_product_details_tabs');
}

public function extend_product_details_tabs($controller, $product)
{
  return array(
    'My tab caption' => 'modules/my_module/partials/_my_partial.htm',
    'Second custom tab' => 'modules/my_module/partials/_another_partial.htm'
  );
}