Try our conversational search powered by Generative AI!

Possible to add lineitem to cart with quantity = 0

Found in

EPiServer.Commerce 11.2.3

Fixed in

EPiServer.Commerce 11.2.6

(Or a related package)

Created

Sep 21, 2017

Updated

Oct 06, 2017

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Enable SerializableCart mode.
  2. Have one SKU with MaxQuantity = 0.
  3. In Commerce Manager, add that SKU to the cart.
  4. Notice the warning saying that the quantity is changed when saving the cart.
  5. Reopen the cart.
  6. DivisionByZero exception is thrown.