API
[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?