How to use +/- buttons with Matrix View?

Created by Nicole Le, Modified on Mon, 07 May 2018 at 09:40 AM by Nicole Le

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.

Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article