- Nexxpix - OpenStudio * @author Franck Allimant */ class DigressivePriceHook extends BaseHook { public function onProductTab(HookRenderBlockEvent $event) { $event->add( [ 'id' => 'product_digressive_price', 'title' => $this->trans('Digressive Prices', [], DigressivePrice::DOMAIN), 'content' => $this->render('product-tab-content-hook.html') ] ); } public function onProductDetailsBottom(HookRenderEvent $event) { $event->add( $this->render( 'digressive-price/product-details-bottom.html', [ 'product_id' => $event->getArgument('product') ] ) ); } public function onProductJavascriptInitialization(HookRenderEvent $event) { $event->add( $this->render('digressive-price/digressive-price.js.html') ); } }