2

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.

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

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>

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.