| Line 40... |
Line 40... |
| 40 |
//end of get cache
|
40 |
//end of get cache
|
| 41 |
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)){
|
| 42 |
$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']);
|
| 43 |
}else{
|
43 |
}else{
|
| 44 |
$searchName = 'seacrh'.$this->input->get('q');
|
44 |
$searchName = 'seacrh'.$this->input->get('q');
|
| - |
|
45 |
//Anikendra: default search page should display all products
|
| - |
|
46 |
if($this->input->get('q')==''){
|
| - |
|
47 |
redirect(base_url().'search/?q=*');
|
| - |
|
48 |
}
|
| 45 |
if(!isset($authorized['isPrivateDealUser'])) {
|
49 |
if(!isset($authorized['isPrivateDealUser'])) {
|
| 46 |
$cache = getFileCache($searchName);
|
50 |
$cache = getFileCache($searchName);
|
| 47 |
}
|
51 |
}
|
| 48 |
if(isset($cache) && !empty($cache)){
|
52 |
if(isset($cache) && !empty($cache)){
|
| 49 |
$data['response'] = $cache;
|
53 |
$data['response'] = $cache;
|