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

Ensure stock is checked when updating line items #801

Merged

Conversation

duncanmcclean
Copy link
Owner

@duncanmcclean duncanmcclean commented Feb 1, 2023

This pull request fixes an issue when updating line items using the {{ sc:cart:updateItem }} tag where the quantity wasn't being checked against the stock of the product/variant to ensure enough stock exists to fulfil the customer's order.

This check was already being done when you add the product to the cart originally, just not on update.

Fixes #797

@duncanmcclean duncanmcclean merged commit 6f2ba9b into main Feb 1, 2023
@duncanmcclean duncanmcclean deleted the bugfix/ensure-stock-is-checked-when-updating-line-items branch February 1, 2023 22:23
@github-actions
Copy link

github-actions bot commented Feb 1, 2023

Released as part of v4.5.2.

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

Successfully merging this pull request may close these issues.

Stock checking not working when updating through Ajax
1 participant