Subversion Repositories SmartDukaan

Rev

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

Rev 18865 Rev 19035
Line 36... Line 36...
36
		
36
		
37
		$pincode = 0;
37
		$pincode = 0;
38
		
38
		
39
		if($pincode==0 && isset($_COOKIE['s_pincode'])){
39
		if($pincode==0 && isset($_COOKIE['s_pincode'])){
40
			$pincode = base64_decode($_COOKIE['s_pincode']);
40
			$pincode = base64_decode($_COOKIE['s_pincode']);
-
 
41
			$url = $this->apihost . "pincodeValidation/" . $pincode;
-
 
42
			$getstate = $this->make_request ( $url, null );		
-
 
43
			if ($getstate != "{}") {
-
 
44
				$stateres = ucwords ( strtolower ( $getstate ['state'] ) );
-
 
45
			}
41
		}
46
		}
42
		
47
		
43
		$cartItems = array();
48
		$cartItems = array();
44
		
49
		
45
		foreach ($dataGiven->cartItems as $key=>$obj) {
50
		foreach ($dataGiven->cartItems as $key=>$obj) {
Line 161... Line 166...
161
				array_push ( $firstshowaddress, $moreshowaddress [$i] );
166
				array_push ( $firstshowaddress, $moreshowaddress [$i] );
162
			}
167
			}
163
			
168
			
164
			$this->set ( 'address', $response );
169
			$this->set ( 'address', $response );
165
			
170
			
166
			$this->set ( compact ( 'firstshowaddress', 'totalPayable', 'user_name', 'user_contact', 'pincode', 'defaultselectedaddress', 'message', 'codAvailable', 'taxInvoiceEnabledUser', 'creditorAssociated', 'creditLimit', 'creditTicketSize') );
171
			$this->set ( compact ( 'stateres','firstshowaddress', 'totalPayable', 'user_name', 'user_contact', 'pincode', 'defaultselectedaddress', 'message', 'codAvailable', 'taxInvoiceEnabledUser', 'creditorAssociated', 'creditLimit', 'creditTicketSize') );
167
		}
172
		}
168
	}
173
	}
169
	public function add($user_name = null, $user_contact = null) {
174
	public function add($user_name = null, $user_contact = null) {
170
		$this->layout = 'cartinnerpages';
175
		$this->layout = 'cartinnerpages';
171
		
176