How to update cart qty using ajax magento 2
I want to change qty on cart page.
I don't want to use the update button. It should be update automatically without reloading the page.
ajaxcartmagento2shopping-cart
How to update cart qty using ajax magento 2
I want to change qty on cart page.
I don't want to use the update button. It should be update automatically without reloading the page.
Best Answer
Reload totals cart after ajax change quantity 1. Step
In your custom them create ( Magento_Theme/layout/checkout_cart_index.xml )
2.Step
creat js.phtml file ( Magento_Theme/templates/js.phtml )
3. Step create custom.js file in theme web folder ( Namespace/Yourtheme/web/js/custom.js )
4.Step ( map your js file )
Create requirejs-config.js on your theme root ( Namespace/yourtheme/requirejs-config.js)
Now the qty update work using ajax If have any issue ask in comment.