getRequest()->getSession()->getOrder()->getChoosenDeliveryAddress(); $zipcode = AddressQuery::create()->filterById($addressId)->findOne($con)->getZipcode(); try { $areaId = LpsAreaCityQuery::create()->findOneByZipcode($zipcode)->getIdArea(); } catch (PropelException $e) { throw new DeliveryException( Translator::getInstance()->trans("This module cannot be used on the current cart.")); } $event->add( $this->render( 'order-delivery-extra.html', [ 'module_id' => LivraisonParSecteurs::getModuleId(), 'address_id' => $addressId, 'area_id' => $areaId ] ) ); } }