Subversion Repositories SmartDukaan

Rev

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

Rev 19610 Rev 19990
Line 750... Line 750...
750
		
750
		
751
		}
751
		}
752
		return $offerresponse;	
752
		return $offerresponse;	
753
		//check for offer end
753
		//check for offer end
754
	}
754
	}
-
 
755
	
-
 
756
	public function getpin(){
-
 
757
		$getpin = $this->Auth->user('pincode');
-
 
758
		if(!isset($getpin)){
-
 
759
			$userId = $this->Auth->user('id');
-
 
760
			$pinquery = "select pincode from all_user_addresses where user_id = '".$userId."' and pincode is not Null limit 1";
-
 
761
			$pinres = $this->Category->query($pinquery);
-
 
762
			if(!empty($pinres)){
-
 
763
				$getpin =  $pinres[0]['all_user_addresses']['pincode'];
-
 
764
			}
-
 
765
		}
-
 
766
		if(!isset($getpin) && empty($getpin)){
-
 
767
			$getpin = '';
-
 
768
		}
-
 
769
		return $getpin;
-
 
770
	}
-
 
771
	
755
}
772
}