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
Describe the bug
Checkout is validating quantity wrong for Products which are set to ManageInventoryMethod.ManageStock, StockQuantity=1, BackorderMode.NoBackOrders (with cart set to AddProductsToBasketInSinglePositions).
It gets the quantityToValidate here but then adds the quantity again here which then adds the insufficient stock warning.
Why is the quantity added again to quantityToValidate? Shouldn't quantityToValidate just be set to the quantity of the sum?
To Reproduce
Steps to reproduce the behavior:
Create a product with these settings: ManageInventoryMethod.ManageStock, StockQuantity=1, BackorderMode.NoBackOrders.
Set the cart to single position adding.
Put the product into the shopping cart and try going to checkout.
Desktop (please complete the following information):
OS: Win10x64, Linux x64
Browser Chrome
The text was updated successfully, but these errors were encountered:
Algorithman
changed the title
ShoppingCartValidator wrong validation when cart is set to AddProductsToBasketInSinglePositions
ShoppingCartValidator incorrect validation when cart is set to AddProductsToBasketInSinglePositions
Aug 24, 2023
should do the trick.
It adds the quantity if ValidateProductAsync is actually called to add a product and does not if it's called just to verify the cart.
I don't know if this also has to be done for the combination products (since we don't deal with them), but my guess is yes.
Describe the bug
Checkout is validating quantity wrong for Products which are set to ManageInventoryMethod.ManageStock, StockQuantity=1, BackorderMode.NoBackOrders (with cart set to AddProductsToBasketInSinglePositions).
It gets the quantityToValidate here but then adds the quantity again here which then adds the insufficient stock warning.
Why is the quantity added again to quantityToValidate? Shouldn't quantityToValidate just be set to the quantity of the sum?
To Reproduce
Steps to reproduce the behavior:
Create a product with these settings: ManageInventoryMethod.ManageStock, StockQuantity=1, BackorderMode.NoBackOrders.
Set the cart to single position adding.
Put the product into the shopping cart and try going to checkout.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: