*/ class HookManager extends BaseHook { public function onModuleConfiguration(HookRenderEvent $event) { $event->add( $this->render( "module_configuration.html", [ 'price' => floatval(LocalPickup::getConfigValue(LocalPickup::PRICE_VAR_NAME, 0)) ] ) ); } public function onOrderInvoiceDeliveryAddress(HookRenderEvent $event) { // Show the local delivery template if we're the current delivery module. if ((null !== $order = $this->getSession()->getOrder()) && $order->getDeliveryModuleId() == LocalPickup::getModuleId()) { $event->add( $this->render("localpickup/order-invoice-delivery-address.html", [ 'order_id' => $event->getArgument('order_id'), ]) ); } } }