How can you add Qty Input to product list Widget in Magento 2.
(not the the product list page as described here)

  1. I have added a product list widget to a CMS page like by clicking on the insert widget button and filling in the widget form.

  2. This adds the Product List to the CMS page.

  3. I would like it to include a QTY input so the user cans select how many products they wish to add to the cart...

I'm able to add the QTY input by adding the code below to here.

It appears fine, but the issue is that it does not add the select qty by the user, it only ever adds one item at a time.

This seems to be because of how the button is adding the item to the cart...

<button class="action tocart primary" data-post="{&quot;action&quot;:&quot;https:\/\/example.com\/checkout\/cart\/add\/uenc\/aHR0cHM6Ly9xYS5zYW1tY2NhdWxleS5jb20vdGVzdC1wYWdlMg%2C%2C\/product\/39\/&quot;,&quot;data&quot;:{&quot;product&quot;:&quot;39&quot;,&quot;uenc&quot;:&quot;aHR0cHM6Ly9xYS5zYW1tY2NhdWxleS5jb20vdGVzdC1wYWdlMg,,&quot;}}" type="button" title="Add to Cart">
<span>Add to Cart</span>

Any idea of how I can update the product list widget so that it can have a qty field which works.

  • Same question here, did you solved? @Holly
    – 王興全
    Jul 12, 2022 at 9:45

1 Answer 1


by default luma theme don't allow to add qty .. you can try other theme..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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