Subversion Repositories SmartDukaan

Rev

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

Rev 19640 Rev 19644
Line 140... Line 140...
140
		$searchableSubCategories = array('20'=>'Screen Guard', '27'=>'Back Cover', '29'=>'Batteries', '33'=>'Flip Cover', '28'=>'Tempered Glass');
140
		$searchableSubCategories = array('20'=>'Screen Guard', '27'=>'Back Cover', '29'=>'Batteries', '33'=>'Flip Cover', '28'=>'Tempered Glass');
141
		
141
		
142
		$subcatlist = Configure::read('arrSubCategory');
142
		$subcatlist = Configure::read('arrSubCategory');
143
		
143
		
144
		$whatfirst = $this->request->query('whatfirst');
144
		$whatfirst = $this->request->query('whatfirst');
145
		
-
 
146
		if(isset($brands) && !empty($brands) && !isset($subcategories) && !isset($whatfirst)){
-
 
147
			$whatfirst = "brand";
-
 
148
		}
-
 
149
		else if(isset($subcategories) && !empty($subcategories) && !isset($brands) && !isset($whatfirst)){
-
 
150
			$whatfirst = "subCategory";
-
 
151
		}else if(isset($subcategories) && !empty($subcategories) && isset($brands) && !empty($brands) && !isset($whatfirst)){
-
 
152
			$whatfirst = "subCategory";
-
 
153
		}
-
 
154
					
145
					
155
		if($id == 6)
146
		if($id == 6)
156
		{
147
		{
-
 
148
			
-
 
149
			if(isset($brands) && !empty($brands) && !isset($subcategories) && !isset($whatfirst)){
-
 
150
				$whatfirst = "brand";
-
 
151
			}
-
 
152
			else if(isset($subcategories) && !empty($subcategories) && !isset($brands) && !isset($whatfirst)){
-
 
153
				$whatfirst = "subCategory";
-
 
154
			}else if(isset($subcategories) && !empty($subcategories) && isset($brands) && !empty($brands) && !isset($whatfirst)){
-
 
155
				$whatfirst = "subCategory";
-
 
156
			}
-
 
157
			
157
			$cachekey = 'subcat-6';
158
			$cachekey = 'subcat-6';
158
			$getdet = Cache::read($cachekey,'subcatdetail');
159
			$getdet = Cache::read($cachekey,'subcatdetail');
159
			if(empty($getdet) || $getdet === false){
160
			if(empty($getdet) || $getdet === false){
160
				$url = $this->apihost.'deals/subCategory/?category_id=6';
161
				$url = $this->apihost.'deals/subCategory/?category_id=6';
161
				$getdet = $this->make_request($url,null);
162
				$getdet = $this->make_request($url,null);