Subversion Repositories SmartDukaan

Rev

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

Rev 3224 Rev 3507
Line 70... Line 70...
70
	    if(cartId != -1){
70
	    if(cartId != -1){
71
        	try {
71
        	try {
72
    			UserContextService.Client userClient = (new UserClient()).getClient();
72
    			UserContextService.Client userClient = (new UserClient()).getClient();
73
    			errorMsg = userClient.validateCart(cartId);
73
    			errorMsg = userClient.validateCart(cartId);
74
    			log.info("Error Message rcvd from the service is:" + errorMsg);
74
    			log.info("Error Message rcvd from the service is:" + errorMsg);
-
 
75
    			
-
 
76
    			// As per ticket #119 in trac
-
 
77
    			int totalItems = userClient.getCart(cartId).getLinesSize();
-
 
78
				userinfo.setTotalItems(totalItems);
75
    		} catch (Exception e) {
79
    		} catch (Exception e) {
76
    			// This exception can be ignored for showing the cart. Not so
80
    			// This exception can be ignored for showing the cart. Not so
77
    			// innocent when this occurs at the time of checkout or when the
81
    			// innocent when this occurs at the time of checkout or when the
78
    			// user is proceeding to pay.
82
    			// user is proceeding to pay.
79
    		    log.warn("Unable to validate the cart: ", e);
83
    		    log.warn("Unable to validate the cart: ", e);