I have a core js file that I want to override, but everything I have tried has failed, including essentially copying the method used by another core file being overridden that does work. Here is what I have in my requirejs.config.js so far:
var config = {
map: {
"*": {
'Magento_Checkout/js/view/minicart':'js/view/minicart', //This one is overriden properly
'Magento_Checkout/js/action/place-order':'js/action/place-order' //This one won't override
}
}
};
Here are the paths to both files that won't override:
core file: vendor/magento/module-checkout/view/frontend/web/js/action/place-order.js
override file: app/design/frontend/MyNamespace/mymodule/Magento_Checkout/web/js/action/place-order.js
And for reference, here are the paths to the one that IS being overridden:
core file: vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js
override file:
app/design/frontend/MyNamespace/mymodule/Magento_Checkout/web/js/view/minicart.js
I am using Magento 2.2.6 as well.
I have cleared the cache multiple times and because I am in a dev environment, I don't need to deploy static content, but I tried it anyway, still didn't work. I can't figure out why one would override and the other doesn't.
Any help is appreciated.