-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Calling "cart/removeFromCart" with a quantity does not decrement the quantity #1003
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Calling "cart/removeFromCart" with a quantity should decrement the quantity for that cartItem
Actual Behavior
Quantity is not decremented
Steps to Reproduce the Behavior
I don't believe this functionality is currently used in the stock shop since we don't currently allow you to change quantities.
ReactionCore.Collections.Cart.findOne()
in the browser console to get the current cartReactionCore.Collections.Cart.findOne()
again (or however you want to look at the db)Additionally there probably needs to be a check that if the decrement brings the quantity to
<= 0
that the item should just be removed. I also don't see a test for this but I will try to add one if it's missing.Looking at the method code I can't see why this isn't working. The Mongo call returns a 1 and the values seem to be correct.
The text was updated successfully, but these errors were encountered: