Subversion Repositories SmartDukaan

Rev

Rev 741 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 741 Rev 786
Line 64... Line 64...
64
    	if(!userinfo.isLoggedIn()){
64
    	if(!userinfo.isLoggedIn()){
65
    		setRedirectUrl();
65
    		setRedirectUrl();
66
    		addActionError("Please login to continue checkout.");
66
    		addActionError("Please login to continue checkout.");
67
    		return "redirect";
67
    		return "redirect";
68
    	}
68
    	}
69
    	long addressId = Long.parseLong(this.request.getParameter("addressid"));
69
    	String addressIdString = this.request.getParameter("addressid");
-
 
70
    	if(addressIdString == null){
-
 
71
    		addActionError("Please login to continue checkout.");
-
 
72
    		return "shipping-redirect";
-
 
73
    	}
-
 
74
    	long addressId = Long.parseLong(addressIdString);
70
    	long currentCartId = userinfo.getCartId();
75
    	long currentCartId = userinfo.getCartId();
71
    	
76
    	
72
		try{
77
		try{
73
			amount = Double.parseDouble(request.getParameter("amount"));
78
			amount = Double.parseDouble(request.getParameter("amount"));
74
		}catch(Exception e){
79
		}catch(Exception e){