8000 ShoppingCartValidator incorrect validation when cart is set to AddProductsToBasketInSinglePositions · Issue #797 · smartstore/Smartstore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ShoppingCartValidator incorrect validation when cart is set to AddProductsToBasketInSinglePositions #797
Closed
@Algorithman

Description

@Algorithman

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

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0