I have referred the link
and made changes in abstract-total.js and shipping.js. Now order summary is displayed and shipping amount updates correctly on changing shipping method but it is not getting updated in grand total. Any solution ?
checkout-pagemagento2magento2.2.6order-summaryorders
I have referred the link
and made changes in abstract-total.js and shipping.js. Now order summary is displayed and shipping amount updates correctly on changing shipping method but it is not getting updated in grand total. Any solution ?
Best Answer
UPDATED ANSWER
As @badwi noted, the old answer started creating an error. Here is the new way to do it using magento best practices. This is tested as working in M2.3.6. I'm creating these files in my custom theme but it can also be done with an extension. If you use an extension then the requirejs-config.js file will need to be adjust slightly according to the magento documentation.
theme/Magento_Checkout/requirejs-config.js:
theme/Magento_Checkout/web/js/view/summary/abstract-total-mixin.js:
theme/Magento_Checkout/web/js/view/shipping-mixin.js: