Issue
I disabled the input in the qty box, so that the user can't type a number, but can use only the +/- buttons.
But when i press the add to cart button I get error message configurable-matrixview.js line 154 .I commented this line
configurable-matrixview.js line 68, I changed step value so that it is equal with the minimum qty that I've inserted in the product.
The logic of your code is wrong, a user should be able to disable the qty input. Magento by itself is working perfectly with the qty input disabled
Explanation and Solution
Our developer confirms that current logic is correct. If input is disabled then it's unable to post data.
Regarding Magento default if disable input qty it's unable to receive qty info by default it will add qty of 1 while our module will check qty if it's more than 0.
If you want to use only the +/- buttons our developer suggests that you can use read-only of input in this case.
For more information about product, please refer Configurable Product Matrix View page.
If you need any further assistance, please feel free to contact us.
Learn more about us!!
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Discover our extensions: https://bsscommerce.com/magento-2-extensions.html
You can refer our top tier extensions:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article