Web Analytics

Fill the form & Get Installation Support

How to add quantity increment/decrement button on Minicart in Magento 2?

The default Magento 2 does not provide an increment-decrement button in the minicart. If you want to set the increment-decrement button in minicart then follow the below steps

Step 1 : Create phtml file like app/design/frontend/Magemonkey/YourTheme/Magento_Checkout/templates/cart/minicart.phtml

Now open and add the below jQuery code in minicart.phtml

Step 2: Create HTML file like app/design/frontend/Magemonkey/YourTheme/Magento_Checkout/web/template/minicart/item/default.html

Now add below two classes in your default.html inside the details-qty qty class.

Now default.html file looks like this

Step 3: After placing the above code, please run the below-mentioned commands

That’s it…

Now add some qty to the cart and check Minicart. The increment/Decrement button should be visible in minicart.

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

    Recent Articles

    Author Info

    Hire R. Patel

    Get a Free Quote

      /* second popup */

      Connect With Us