Subversion Repositories SmartDukaan

Rev

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

Rev 3561 Rev 3562
Line 203... Line 203...
203
	private boolean updateItemQuantityInCart(long cartId, long itemId, long quantity){
203
	private boolean updateItemQuantityInCart(long cartId, long itemId, long quantity){
204
		try {
204
		try {
205
			UserClient userContextServiceClient = new UserClient();
205
			UserClient userContextServiceClient = new UserClient();
206
			in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
206
			in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
207
 
207
 
208
			userClient.changeQuantity(cartId, itemId, quantity);
208
			userClient.addItemToCart(cartId, itemId, quantity, sourceId);
209
			return true;
209
			return true;
210
		} catch (ShoppingCartException e) {
210
		} catch (ShoppingCartException e) {
211
		    log.error("Unable to update the item quantity in the cart: ", e);
211
		    log.error("Unable to update the item quantity in the cart: ", e);
212
		} catch (TException e) {
212
		} catch (TException e) {
213
		    log.error("Unable to update the item quantity in the cart: ", e);
213
		    log.error("Unable to update the item quantity in the cart: ", e);