Example #1
0
 public function onProductDeliveryDelay(HookRenderEvent $event)
 {
     $productId = $event->getArgument('product');
     $handler = new ProductDelayHandler();
     $delivery = $handler->getDelayForProduct($productId);
     $event->add($this->render('delivery-delay/product-delivery-delay.html', $delivery));
 }
 public function buildArray()
 {
     $productId = $this->getProductId();
     $handler = new ProductDelayHandler();
     $delivery[] = $handler->getDelayForProduct($productId);
     return $delivery;
 }