Skip to content

Commit

Permalink
#4217 First update cart and parse attributes after
Browse files Browse the repository at this point in the history
  • Loading branch information
holydk committed Dec 24, 2019
1 parent 17ab3f4 commit 11c59d4
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1337,12 +1337,12 @@ public virtual IActionResult UpdateCart(IFormCollection form)
cartItem.Item.RentalStartDateUtc, cartItem.Item.RentalEndDateUtc, cartItem.NewQuantity, true)
}).ToList();

//parse and save checkout attributes
ParseAndSaveCheckoutAttributes(cart, form);

//updated cart
cart = _shoppingCartService.GetShoppingCart(_workContext.CurrentCustomer, ShoppingCartType.ShoppingCart, _storeContext.CurrentStore.Id);

//parse and save checkout attributes
ParseAndSaveCheckoutAttributes(cart, form);

//prepare model
var model = new ShoppingCartModel();
model = _shoppingCartModelFactory.PrepareShoppingCartModel(model, cart);
Expand Down

0 comments on commit 11c59d4

Please sign in to comment.