On add to cart getting error of 422 when continue selling checkbox is checked.

On add to cart getting error of 422 when continue selling checkbox is checked.

rishika-mukati
Shopify Partner
4 1 1

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.

Reply 1 (1)

ProtoMan44
Shopify Partner
502 43 80

@rishika-mukati  CAN YOU PLEASE SHARE STORE URL

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!