| 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);
|