isValidDelivery($country)) { throw new DeliveryException( Translator::getInstance()->trans("This module cannot be used on the current cart.") ); } $price = 0; if (null !== $chosenPlace = $this->getRequest()->get(('cnc-choosen-day'))) { $price = PdrPlacesQuery::create()->findOneById($chosenPlace)->getPrice(); } return $price; } }