1

I need to override the template:module-checkout/view/frontend/web/template/shipping.html I have created requirejs-config.js

var config = {
    map: {
        '*': {
            'Magento_Checkout/template/shipping.html':
                'Anime_Shipping/template/shipping.html'
        }
    }
};

I have created the copy of template file in: app/code/Anime/Shipping/view/frontend/web/template/shipping.html. I have copied the whole code from original file to my own. I deployed the satic-content, cleared cache, compiled the code. The template does not seem to load. It is neither taking the original nor mine. What might be the problem?

  • are you using a custom theme? – MGento Dec 7 '17 at 6:55
  • You should copy the file Magento_Checkout/template/shipping.html inside your theme folder. – MGento Dec 7 '17 at 6:59
  • not using custom theme. – Purushotam Sangroula Dec 7 '17 at 7:07
0

It is quite absurd but I solved my problem by deleting the pub/static/frontend/Magento/luma/en_US/Anime_Shipping/template/shipping.html.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.