$smarty->assign('images', $images); if ($hotel->destinoId) { $imagesDestino = getAllDestinoImages($hotel->destinoId); $smarty->assign('imagesDestino', $imagesDestino); } $servicios = getAllHotelServicios($hotel->id); $smarty->assign('servicios', $servicios); $condiciones = getAllHotelCondiciones($hotel->id); $smarty->assign('condiciones', $condiciones); $logotipo = getHotelLogotipo($hotel->id); $smarty->assign('logotipo', $logotipo); $faq = getFaq(1); $contenido = json_decode($faq->contenido); $smarty->assign("contenido", $contenido->{$lang_set}); if ($hotel->config->id) { $productos = getProductosFullByConfiguracionId($hotel->config->id, 5, true); if ($productos && is_array($productos) && count($productos) > 0) { $smarty->assign('excursiones', $productos); } /*$params = getParametrosVikaByHotelId($hotel->id); if($params) { $client = new nusoap_client($service_url."/soap-evento"); $client->debug_flag = true; $result = $client->call('excursiones', array('params' => $params)); $result = json_decode($result); $excursiones = $result->data;
foreach ($reservas_excursiones as $rexc) { $precio += $rexc->total; if ($rexc->forma_cobro == 'online') { $cobro_anticipado += $rexc->total * $rexc->porcientoInicial / 100; } } $smarty->assign('precio_total', $hotel->moneda->simbolo . number_format($precio, 2, ',', '')); if ($hotel->moneda->codigo != $money) { $smarty->assign('precio_total_moneda', $currency . convertFromMonedaToMoneda($precio, $hotel->moneda->codigo, $money)); } $smarty->assign('pagar_ahora', $cobro_anticipado > 0); $smarty->assign('cobro_anticipado', $hotel->moneda->simbolo . " " . number_format($cobro_anticipado, 2, ',', '')); //buscar excursiones if ($hotel->config->id) { //$params = getParametrosVikaByHotelId($hotel->id); $excursiones = getProductosFullByConfiguracionId($hotel->config->id); /* $client = new nusoap_client($service_url."/soap-evento"); $client->debug_flag = true; $result = $client->call('excursiones', array('params' => $params)); $result = json_decode($result); $excursiones = $result->data; */ $excursiones_interval = array(); if ($excursiones) { foreach ($excursiones as $excursion) { $excursion->precio_minimo_custom = $currency . convertFromMonedaToMoneda($excursion->precio_minimo, $hotel->moneda->codigo, $money); $excursion->precio_minimo = $hotel->moneda->simbolo . convertFromMonedaToMoneda($excursion->precio_minimo, $hotel->moneda->codigo, $hotel->moneda->codigo); $in_interval = false; /*Restricción de compra: if($excursion->restriccionCompra)