Exemplo n.º 1
0
$offers[1] = JTEXT::_('MOD_BOOKINGFORSEARCHFILTER_OFFERS_OFFER');
$pars = BFCHelper::getSearchParamsSession();
// se  passo questi dati è una nuova ricerca
$masterTypeId = $pars['masterTypeId'];
$merchantCategoryId = $pars['merchantCategoryId'];
// TODO: SUSPENDED
//if (!empty($merchantCategoryId)) {
//
////	$singeMerchantCategory = BFCHelper::getMerchantCategory($merchantCategoryId);
////	$services  = $singeMerchantCategory->Services;
//	$services  =  BFCHelper::getServicesByMerchantsCategoryId($merchantCategoryId,$language);
//}else{
//	$services  =  BFCHelper::getServicesForSearch($language);
//
//}
$services = BFCHelper::getServicesForSearch($language);
$duration = 1;
// $pars['duration'];
if (empty($duration)) {
    $duration = 1;
}
// è il codice per l'ordinamento a random....
$searchid = JRequest::getVar('searchid');
//$searchid =  $this->params['searchid'];
$isMerchantResults = $pars['merchantResults'];
$filtersEnabledBookingTypes = array();
$filtersEnabledRooms = array();
$filtersEnabledRateplanName = array();
$filtersEnabledServices = array();
$filtersEnabledServicesMerchants = array();
$filtersEnabledMerchantGroups = array();