*/ class HookManager extends BaseHook { public function onAccountOrderAfterProducts(HookRenderEvent $event) { $orderId = $event->getArgument('order'); if (null !== $orderId) { $render = $this->render( 'account-order-after-products.html', [ "order_id" => $orderId ] ); $event->add($render); } $event->stopPropagation(); } public function onModuleConfiguration(HookRenderEvent $event) { $moduleId = $this->getModule()->getModuleId(); $config = CustomDelivery::getConfig(); $event->add( $this->render( "configuration.html", [ 'module_id' => $moduleId, 'method' => $config['method'] ] ) ); } public function onModuleConfigJs(HookRenderEvent $event) { $event->add( $this->render("module-config-js.html") ); } }