Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

[Cart AJAX API] Inventory error message updates

We are updating the error messages in the AJAX API for cases where a client requests more inventory than is available.

  • If no inventory of a variant is in the cart and the client requests more than is available, the error message will be: "Only available quantity items were added to your cart."
  • If all available inventory of a variant is already in the cart and the client requests more, the error message will be: "The maximum quantity of this item is already in your cart."

These changes will affect the add.js, change.js, and update.js endpoints.

Was this section helpful?