Subversion Repositories SmartDukaan

Rev

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

Rev 1044 Rev 1466
Line 30... Line 30...
30
	
30
	
31
	 // GET /cart
31
	 // GET /cart
32
	 public String index() {
32
	 public String index() {
33
    	try {
33
    	try {
34
			UserContextService.Client userClient = (new UserContextServiceClient()).getClient();
34
			UserContextService.Client userClient = (new UserContextServiceClient()).getClient();
35
			if(!userClient.validateCart(userinfo.getCartId()))
35
			errorMsg = userClient.validateCart(userinfo.getCartId());
36
				errorMsg = "Your cart has been updated.";
-
 
37
		} catch (Exception e) {
36
		} catch (Exception e) {
38
			// This exception can be ignored for showing the cart. Not so
37
			// This exception can be ignored for showing the cart. Not so
39
			// innocent when this occurs at the time of checkout or when the
38
			// innocent when this occurs at the time of checkout or when the
40
			// user is proceeding to pay.
39
			// user is proceeding to pay.
41
			e.printStackTrace();
40
			e.printStackTrace();