Subversion Repositories SmartDukaan

Rev

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

Rev 17372 Rev 17766
Line 971... Line 971...
971
				 	
971
				 	
972
			}
972
			}
973
		}		
973
		}		
974
		return $links[$categoryId];		
974
		return $links[$categoryId];		
975
	}
975
	}
976
}
-
 
977
976
	
-
 
977
	public function cartdetails(){
-
 
978
		$postData = json_decode($this->request->data['cart_details']);
-
 
979
		$userId = $this->request->query('user_id');
-
 
980
		
-
 
981
		$options = array('contain'=>array('UserAccount'), 'conditions'=>array('User.id'=>$userId,'UserAccount.account_type'=>'saholic'),'fields'=>array('username','email','key'),'recursive'=>-1);
-
 
982
		$user = $this->User->find('first',$options);
-
 
983
		/*
-
 
984
		$options = array('conditions'=>array('user_id'=>$userId,'account_type'=>'saholic'),'recursive'=>-1,'fields'=>'account_key');
-
 
985
		$userAccount = $this->UserAccount->find('first',$options);
-
 
986
		$options = array('conditions'=>array('user_id'=>$userId,'account_type'=>'cartId'),'recursive'=>-1,'fields'=>'account_key');
-
 
987
		$cartId = $this->UserAccount->find('first',$options);
-
 
988
		print_r($userAccount);*/
-
 
989
		#print_r($user);
-
 
990
	}
-
 
991
}
-
 
992