Subversion Repositories SmartDukaan

Rev

Rev 11108 | Rev 12188 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11108 Rev 12159
Line 28... Line 28...
28
		//get cache 
28
		//get cache 
29
		$configdata =array();
29
		$configdata =array();
30
		$configdata = $this->config->item('searchlist');
30
		$configdata = $this->config->item('searchlist');
31
		$cachemodule = array('header','footer');
31
		$cachemodule = array('header','footer');
32
		$configdata = getCache($configdata,$cachemodule);
32
		$configdata = getCache($configdata,$cachemodule);
-
 
33
		$authorized = $this->session->userdata('authorized');
-
 
34
		if($authorized['Id'] > 0){
-
 
35
			$_SERVER['QUERY_STRING'] .= '&userId='.$authorized['Id'].'&isLoggedIn=true';
-
 
36
		}
-
 
37
		if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) {
-
 
38
			$_SERVER['QUERY_STRING'] .= '&privateDealUser=true';
-
 
39
		}
33
		//end of get cache
40
		//end of get cache
34
		if(array_key_exists('fq', $_GET) || array_key_exists('sortedBy', $_GET) || array_key_exists('minPrice', $_GET)){
41
		if(array_key_exists('fq', $_GET) || array_key_exists('sortedBy', $_GET) || array_key_exists('minPrice', $_GET)){
35
			$data['response']=$this->search_model->getProducts($this->input->get(),$this->input->post(),$configdata['module'],$_SERVER['QUERY_STRING']);
42
			$data['response']=$this->search_model->getProducts($this->input->get(),$this->input->post(),$configdata['module'],$_SERVER['QUERY_STRING']);
36
		}else{
43
		}else{
37
			$searchName = 'seacrh'.$this->input->get('q');
44
			$searchName = 'seacrh'.$this->input->get('q');