-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account for stock in cart #1
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can technically fail validation if one of the child items is added with more stock than is remaining once you account for the quantity in the cart.
Example:
6 pack wine
3 red
3 white (4 left in stock)
cart
2 white
this would be attempting to have 5 total white bottles in the cart, which is more than stock.
The text was updated successfully, but these errors were encountered: