Subversion Repositories SmartDukaan

Rev

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

Rev 741 Rev 762
Line 91... Line 91...
91
			// should update the item count as well. Also, there can be a method
91
			// should update the item count as well. Also, there can be a method
92
			// called refreshItemCount() that automatically updates the number of
92
			// called refreshItemCount() that automatically updates the number of
93
			// items currently in the cart.
93
			// items currently in the cart.
94
			userClient.mergeCart(userinfo.getCartId(), user.getActiveCartId());
94
			userClient.mergeCart(userinfo.getCartId(), user.getActiveCartId());
95
			userinfo.setCartId(user.getActiveCartId());
95
			userinfo.setCartId(user.getActiveCartId());
96
			userinfo.setTotalItems(Utils.getNumberOfItemsInCart(userinfo.getCartId()));
96
			int totalItems = userClient.getCart(user.getActiveCartId()).getLinesSize();
-
 
97
			userinfo.setTotalItems(totalItems);
-
 
98
 
97
			return true;
99
			return true;
98
    	}catch(Exception e){
100
    	}catch(Exception e){
99
    		log.error("Wrong username or password.");
101
    		log.error("Wrong username or password.");
100
    		return false;
102
    		return false;
101
    	}
103
    	}