I want to change quantity textbox to quantity dropdown on product page. I found solutions that work for magento 1 not for magento 2.

There is less information/doc about magento 2. It's being very difficult to customize magento 2.

Can anyone help me how i can do this.

Thanks in advance.


According to this file module-catalog/view/frontend/templates/product/view/addtocart.phtml you can try just add to your select id and name from default input

<select id="qty" name="qty" class="input-text qty"></select>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.