Subversion Repositories SmartDukaan

Rev

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

Rev 741 Rev 762
Line 57... Line 57...
57
    public boolean registerUser() throws Exception{
57
    public boolean registerUser() throws Exception{
58
    	String email, password, userName, mobileNumber, communicationEmail, sex, dateOfBirth;
58
    	String email, password, userName, mobileNumber, communicationEmail, sex, dateOfBirth;
59
    	boolean isValid = true;
59
    	boolean isValid = true;
60
    	userName =  this.request.getParameter("nameOfUser");
60
    	userName =  this.request.getParameter("nameOfUser");
61
    	email = this.request.getParameter("email"); 
61
    	email = this.request.getParameter("email"); 
62
    	password = this.request.getParameter("password");
62
    	password = this.request.getParameter("txtPassword");
63
    	
63
    	
64
    	mobileNumber = this.request.getParameter("mobileNumber");
64
    	mobileNumber = this.request.getParameter("mobileNumber");
65
    	communicationEmail = this.request.getParameter("communicationEmail");
65
    	communicationEmail = this.request.getParameter("communicationEmail");
66
    	
66
    	
67
    	dateOfBirth = this.request.getParameter("dateOfBirth");
67
    	dateOfBirth = this.request.getParameter("dateOfBirth");
Line 129... Line 129...
129
		// should update the item count as well. Also, there can be a method
129
		// should update the item count as well. Also, there can be a method
130
		// called refreshItemCount() that automatically updates the number of
130
		// called refreshItemCount() that automatically updates the number of
131
		// items currently in the cart.
131
		// items currently in the cart.
132
		userClient.mergeCart(userinfo.getCartId(), user.getActiveCartId());
132
		userClient.mergeCart(userinfo.getCartId(), user.getActiveCartId());
133
		userinfo.setCartId(user.getActiveCartId());
133
		userinfo.setCartId(user.getActiveCartId());
134
		userinfo.setTotalItems(Utils.getNumberOfItemsInCart(userinfo.getCartId()));
134
		int totalItems = userClient.getCart(userinfo.getCartId()).getLinesSize();
-
 
135
		userinfo.setTotalItems(totalItems);
135
 
136
 
136
		return true;
137
		return true;
137
    }
138
    }
138
 
139
 
139
	public String getRegistrationHeaderSnippet(){
140
	public String getRegistrationHeaderSnippet(){