Closed
Description
Preconditions (*)
- Magento 2.3
- using graphql to add/remove products
Steps to reproduce (*)
Say you have 3 products in stock, you add 3 to the cart and try to remove one via the "updateCartItems" graphql, so setting the qty to 2, it refuses to remove because of insufficient stock.
using Luma it works, but not using graphql.
Expected result (*)
- you should be able to remove the product even if at max amount of stock
Actual result (*)
- exception happens
main.ERROR: Could not update cart item: La quantité demandée n’est pas disponible {"exception":" (GraphQL\Error\Error(code: 0): Could not update cart item: La quantité demandée n’est pas disponible at /vendor/magento/module-quote-graph-ql/Model/Resolver/UpdateCartItems.php:92, Magento\Framework\GraphQl\Exception\GraphQlInputException(code: 0): Could not update cart item: La quantité demandée n’est pas disponible at /magento/vendor/magento/module-quote-graph-ql/Model/Cart/UpdateCartItem.php:95)"} []
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done