How can we override Magento/Checkout/view/frontend/web/js/view/shipping.js
file?
I need to add some custom code to selectShippingMethod
function so i can hide/show a block if a specific shipping method is selected.
Is there a better way to do this?
Thank you!
Best Answer
Just found a way to override that function using 'mixins'.
Helpful info:
https://github.com/magento/magento2/issues/1864 Magento2 - Override Magento/Checkout/view/frontend/web/js/view/shipping.js