- Nexxpix - OpenStudio */ class DigressivePriceHook extends BaseHook { public function onProductTab(HookRenderBlockEvent $event) { $event->add([ 'id' => 'digressive-prices', 'title' => Translator::getInstance()->trans( 'Digressive prices', [], DigressivePrice::DOMAIN ), 'content' => $this->render('product-tab-content-hook.html') ]); } public function onProductJavascriptInitialization(HookRenderEvent $event) { $event->add( $this->render('digressive-price-update-js.html') ); } public function onCategoryJavascriptInitialization(HookRenderEvent $event) { $event->add( $this->render('digressive-price-update-js.html') ); } }