Subversion Repositories SmartDukaan

Rev

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

Rev 20274 Rev 20614
Line 80... Line 80...
80
			$this->layout = 'innerpages';
80
			$this->layout = 'innerpages';
81
			$url = Configure::read ( 'saholicapihost' ) . 'address?isLoggedIn=true&privateDealUser=true&userId=' . $suserId;
81
			$url = Configure::read ( 'saholicapihost' ) . 'address?isLoggedIn=true&privateDealUser=true&userId=' . $suserId;
82
			$response = $this->make_request ( $url, null );
82
			$response = $this->make_request ( $url, null );
83
			$user_name = "";
83
			$user_name = "";
84
			$user_contact = "";
84
			$user_contact = "";
85
			
-
 
-
 
85
			//Statically set to false for all orders
86
			$codAvailable = $cartskus['cod'];
86
			//$codAvailable = $cartskus['cod'];
-
 
87
			$codAvailable = false;
87
			$this->Session->write('cod', $codAvailable);
88
			$this->Session->write('cod', $codAvailable);
88
			$creditTicketSize = 0;
89
			$creditTicketSize = 0;
89
			
90
			
90
			$creditorAssociated = $response ['creditorAssociated'];
91
			$creditorAssociated = $response ['creditorAssociated'];
91
			if(!isset($response ['userSanctions'])){
92
			if(!isset($response ['userSanctions'])){
Line 530... Line 531...
530
							}					
531
							}					
531
						}
532
						}
532
					}
533
					}
533
					$this->layout = 'innerpages';
534
					$this->layout = 'innerpages';
534
					$next = $redirecturl;					
535
					$next = $redirecturl;					
535
					$redirectUrl = $this->getAutoLoginUrl($userId,$next);
536
					$redirectUrl = $this->getBigUtsavAutoLoginUrl($userId,$next);
536
					$redirectToCart = true;
537
					$redirectToCart = true;
537
					$this->log($redirectUrl,'headers');
538
					$this->log($redirectUrl,'headers');
538
					$this->set(compact('redirectUrl','next','redirectToCart'));
539
					$this->set(compact('redirectUrl','next','redirectToCart'));
539
				}else{
540
				}else{
540
					$totalSkus= intval($dataGiven->totalSkus);
541
					$totalSkus= intval($dataGiven->totalSkus);
541
					setcookie('txn_comp', 'no', -1, '/');
542
					setcookie('txn_comp', 'no', -1, '/');
542
					$this->layout = 'innerpages';
543
					$this->layout = 'innerpages';
543
					$next = "payment?cq=".$totalSkus.'&addressid='.$addressid;					
544
					$next = "payment1?cq=".$totalSkus.'&addressid='.$addressid;					
544
					$redirectUrl = $this->getAutoLoginUrl($userId,$next);
545
					$redirectUrl = $this->getBigUtsavAutoLoginUrl($userId,$next);
545
					$this->log($redirectUrl,'headers');
546
					$this->log($redirectUrl,'headers');
546
					$this->set(compact('redirectUrl','next'));
547
					$this->set(compact('redirectUrl','next'));
547
				}
548
				}
548
			}
549
			}
549
		} else {
550
		} else {