Hello Team,
I’m encountering an issue with a product’s “Add to Cart” functionality. In the backend, I have a product with an inventory quantity of 4 across different locations, and the “Continue selling when out of stock” option is enabled. Everything works as expected when I add this product to the cart four times. However, when I attempt to add a fifth item, I receive the following error response: {“status”: 422, “message”: “Cart Error”, “description”: “All 4 tests “40/black” are in your cart.”}.
Despite this error message, if I click the “Add to Cart” button again, the quantity increases to 6.
Please help me resolve this issue.
Thank you.