Create Mixin /app/code/XXX/Checkout/view/frontend/requirejs-config.js
var config = { map: { '*': { 'Magento_Checkout/js/view/shipping': 'XXX_Checkout/js/view/shipping', 'Magento_Checkout/js/view/payment': 'XXX_Checkout/js/view/payment', 'Magento_Checkout/js/model/shipping-save-processor/default': 'XXX_Checkout/js/model/shipping-save-processor/default', 'Magento_Checkout/template/summary.html': 'XXX_Checkout/template/summary.html' } }, config: { mixins: { 'Magento_Checkout/js/action/set-payment-information': { 'XXX_Checkout/js/order/set-payment-information-mixin': true }, 'Magento_Checkout/js/view/summary': { 'XXX_Checkout/js/view/summary-mixin': true } } }
};
Create Mixin
/app/code/XXX/Checkout/view/frontend/requirejs-config.js
var config = {
map: {
'*': {
'Magento_Checkout/js/view/shipping': 'XXX_Checkout/js/view/shipping',
'Magento_Checkout/js/view/payment': 'XXX_Checkout/js/view/payment',
'Magento_Checkout/js/model/shipping-save-processor/default': 'XXX_Checkout/js/model/shipping-save-processor/default',
'Magento_Checkout/template/summary.html': 'XXX_Checkout/template/summary.html'
}
},
config: {
mixins: {
'Magento_Checkout/js/action/set-payment-information': {
'XXX_Checkout/js/order/set-payment-information-mixin': true
},
'Magento_Checkout/js/view/summary': {
'XXX_Checkout/js/view/summary-mixin': true
}
}
}
};
/app/code/XXX/Checkout/view/frontend/web/template/summary.html
/app/code/XXX/Checkout/view/frontend/web/template/summary.html
/app/code/Team23/Checkout/view/frontend/web/js/view/summary-mixin.js
/app/code/Team23/Checkout/view/frontend/web/js/view/summary-mixin.js