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?

3
  • are you using a custom theme?
    – MGento
    Dec 7, 2017 at 6:55
  • You should copy the file Magento_Checkout/template/shipping.html inside your theme folder.
    – MGento
    Dec 7, 2017 at 6:59
  • not using custom theme.
    – P S
    Dec 7, 2017 at 7:07

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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