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-place'))) { $placeId = PdrScheduleQuery::create()->findOneById($chosenPlace)->getIdPlace(); $price = PdrPlacesQuery::create()->findOneById($placeId)->getPrice(); } return $price; } }