Subversion Repositories SmartDukaan

Rev

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

Rev 17899 Rev 17904
Line 188... Line 188...
188
			$checkestimate = 'true';
188
			$checkestimate = 'true';
189
			if ($cartskus ['maxEstimate'] == - 1) {
189
			if ($cartskus ['maxEstimate'] == - 1) {
190
				$checkestimate = 'false';
190
				$checkestimate = 'false';
191
			} else {
191
			} else {
192
				for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
192
				for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
-
 
193
					if(array_key_exists('estimate',$cartskus ['cartItems'] [$i])){
-
 
194
						continue;
-
 
195
					}
193
					if ($cartskus ['cartItems'] [$i] ['estimate'] == - 1) {
196
					$estimate = $cartskus ['cartItems'] [$i] ['estimate'];
-
 
197
					if ($estimate==-1) {
194
						$checkestimate = 'false';
198
						$checkestimate = 'false';
195
						break;
199
						break;
196
					}
200
					}
197
				}
201
				}
198
			}
202
			}
Line 261... Line 265...
261
		$checkestimate = $response ['defaultAddress'];
265
		$checkestimate = $response ['defaultAddress'];
262
		if ($cartskus ['maxEstimate'] == - 1) {
266
		if ($cartskus ['maxEstimate'] == - 1) {
263
			$checkestimate = '';
267
			$checkestimate = '';
264
		} else {
268
		} else {
265
			for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
269
			for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
-
 
270
				if(array_key_exists('estimate',$cartskus ['cartItems'] [$i])){
-
 
271
					continue;
-
 
272
				}
266
				if ($cartskus ['cartItems'] [$i] ['estimate'] == - 1) {
273
				$estimate = $cartskus ['cartItems'] [$i] ['estimate'];
-
 
274
				if ($estimate==-1) {
267
					$checkestimate = '';
275
					$checkestimate = '';
268
					break;
276
					break;
269
				}
277
				}
270
			}
278
			}
271
		}
279
		}
Line 307... Line 315...
307
		$checkestimate = 'true';
315
		$checkestimate = 'true';
308
		if ($cartskus ['maxEstimate'] == - 1) {
316
		if ($cartskus ['maxEstimate'] == - 1) {
309
			$checkestimate = 'false';
317
			$checkestimate = 'false';
310
		} else {
318
		} else {
311
			for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
319
			for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
-
 
320
				if(array_key_exists('estimate',$cartskus ['cartItems'] [$i])){
-
 
321
					continue;
-
 
322
				}
312
				if ($cartskus ['cartItems'] [$i] ['estimate'] == - 1) {
323
				$estimate = $cartskus ['cartItems'] [$i] ['estimate'];
-
 
324
				if ($estimate==-1) {
313
					$checkestimate = 'false';
325
					$checkestimate = 'false';
314
					break;
326
					break;
315
				}
327
				}
316
			}
328
			}
317
		}
329
		}