I need to reload order summary section on selecting the payment method in magento 2
Magento – How to reload order summary section on payment page in Magento 2
magento2
magento2
I need to reload order summary section on selecting the payment method in magento 2
Best Answer
Create a file called
requirejs-config.js
within your module-theme folder (don't do this in vendor files).In there add:
Then create a file called
custom.js
undermodule-theme/web/js
(Again not in your vendor files). And in there add:This should refresh the cart page when the page loads. If you want this to happen at a certain point just listen for a change event such as:
Hope this helps