Web Analytics

Fill the form & Get Installation Support

Magento 2: Product qty box empty when edit product from cart in product detail page

If you got the qty box empty when you edit the product from the cart page, please follow the below instruction.

You need to override “vendor/magento/module-checkout/view/frontend/templates/cart/item/configure/updatecart.phtml” file in your theme

<vendername>/<themename>/Magento_Checkout/templates/cart/item/configure/updatecart.phtml

then just add below line in value

<?= $block->getProductDefaultQty() * 1 ?>

After making above changes QTY field code show will look like below:

Note: I have tried this in Magento 2.3.6 – Let us know if it works with the other versions as well.

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire T. Baldha

    Get a Free Quote





      /* second popup */

      Connect With Us