You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling OrdersController.CreateOrder(), the quantity for any already existing ShoppingCartItem object is doubled.
The issue is in OrdersController.AddOrderItemsToCart(). When calling _shoppingCartService.AddToCart(), Nop assumes that you want to increase the quantity of any pre-existing cart items by the specified amount. This code is called strictly from CreateOrder, so it can be assumed that the quantity submitted for a given OrderItemDto is the desired quantity (and any existing quantity on a ShoppingCartItem should be ignored).