Subversion Repositories SmartDukaan

Rev

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

Rev 18862 Rev 18865
Line 339... Line 339...
339
		);
339
		);
340
		$url = Configure::read ( 'saholicapihost' ) . 'cart!validateCart?isLoggedIn=true&privateDealUser=true&userId=' . $suserId . '&id=' . $scartId . '&email=' . $semailId;
340
		$url = Configure::read ( 'saholicapihost' ) . 'cart!validateCart?isLoggedIn=true&privateDealUser=true&userId=' . $suserId . '&id=' . $scartId . '&email=' . $semailId;
341
		$url = $url . '&pinCode=' . $pin;
341
		$url = $url . '&pinCode=' . $pin;
342
		$cartskus = $this->post_cartinfo_request ( $url, $params );
342
		$cartskus = $this->post_cartinfo_request ( $url, $params );
343
		$checkestimate = 'true';
343
		$checkestimate = 'true';
344
		if ($cartskus ['maxEstimate'] == - 1) {
344
		if ($cartskus ['maxEstimate'] == -1) {
345
			$checkestimate = 'false';
345
			$checkestimate = 'false';
-
 
346
		} 
-
 
347
		else if ($cartskus ['maxEstimate'] == -2) {
-
 
348
			$checkestimate = 'false';
-
 
349
		} 
346
		} else {
350
		else {
347
			for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
351
			for($i = 0; $i < count ( $cartskus ['cartItems'] ); $i ++) {
348
				if(array_key_exists('estimate',$cartskus ['cartItems'] [$i])){
352
				if(array_key_exists('estimate',$cartskus ['cartItems'] [$i])){
349
					continue;
353
					continue;
350
				}
354
				}
351
				$estimate = $cartskus ['cartItems'] [$i] ['estimate'];
355
				$estimate = $cartskus ['cartItems'] [$i] ['estimate'];