Skip to content
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

Open
helgatheviking opened this issue Aug 27, 2024 · 0 comments
Open

Account for stock in cart #1

helgatheviking opened this issue Aug 27, 2024 · 0 comments

Comments

@helgatheviking
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant