-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add validation greater than zero for Maximum Qty Allowed in Shopping Cart for fixed #23319 #23635
Conversation
…Cart for fixed 23319
Hi @ravi-chandra3197. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @ravi-chandra3197 I've just checked the original issue and the following mention in particular:
So, the problem is the system allows to set 0 as the global default value but does not allow saving product with 0 because of additional validation. |
Hello @rogyar |
Hi @ravi-chandra3197. Thank you for the explanation. My point is, you are still not able to save the product. The original issue says "Unable to save edited product when max_sale_qty is Magento's default". Please, use the steps from the original issue: Go to admin area Then check if your fix provides the expected result:
Thank you |
Hello @rogyar I think we have validated global default value and restrict save with 0, because whenever we use |
Hi @ravi-chandra3197. That's correct, to solve this issue we should either allow or disallow 0 value everywhere to avoid confusions. I believe adding a validation "greater than zero" everywhere is the best option. |
Just want to double-check we are on the same page. To proceed with the current solution we need to add additional validation for the global default (Stores -> Configuration -> Catalog -> Inventory) |
@ravi-chandra3197 , I am closing this PR now due to inactivity. |
Hi @ravi-chandra3197, thank you for your contribution! |
Description (*)
Add validation greater than zero for Maximum Qty Allowed in Shopping Cart for fixed #23319
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)