How to override Magento checkout shipping.html












0















myproject/vendor/magento/module-checkout/view/frontend/web/template/shipping.html


Overring using the fallback.



myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


I tried to modify the file : shipping.html , but it didn't get overriden
any solution let me know if I am doing the right way or wrong.










share|improve this question

























  • Why is there "web/web" ?Remove one "web" and try. Clear your cache as well.

    – Geethika Antony
    Mar 14 '18 at 9:59











  • @GeethikaAntony its single web myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00











  • Should work without issue, just clear cache. What does deploy:mode:show return? If your mode is Production you have to recompile your theme

    – Vlad Patru
    Mar 14 '18 at 13:36
















0















myproject/vendor/magento/module-checkout/view/frontend/web/template/shipping.html


Overring using the fallback.



myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


I tried to modify the file : shipping.html , but it didn't get overriden
any solution let me know if I am doing the right way or wrong.










share|improve this question

























  • Why is there "web/web" ?Remove one "web" and try. Clear your cache as well.

    – Geethika Antony
    Mar 14 '18 at 9:59











  • @GeethikaAntony its single web myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00











  • Should work without issue, just clear cache. What does deploy:mode:show return? If your mode is Production you have to recompile your theme

    – Vlad Patru
    Mar 14 '18 at 13:36














0












0








0








myproject/vendor/magento/module-checkout/view/frontend/web/template/shipping.html


Overring using the fallback.



myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


I tried to modify the file : shipping.html , but it didn't get overriden
any solution let me know if I am doing the right way or wrong.










share|improve this question
















myproject/vendor/magento/module-checkout/view/frontend/web/template/shipping.html


Overring using the fallback.



myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


I tried to modify the file : shipping.html , but it didn't get overriden
any solution let me know if I am doing the right way or wrong.







magento2 checkout theme






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 14 '18 at 9:59







Sam

















asked Mar 14 '18 at 9:56









SamSam

1317




1317













  • Why is there "web/web" ?Remove one "web" and try. Clear your cache as well.

    – Geethika Antony
    Mar 14 '18 at 9:59











  • @GeethikaAntony its single web myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00











  • Should work without issue, just clear cache. What does deploy:mode:show return? If your mode is Production you have to recompile your theme

    – Vlad Patru
    Mar 14 '18 at 13:36



















  • Why is there "web/web" ?Remove one "web" and try. Clear your cache as well.

    – Geethika Antony
    Mar 14 '18 at 9:59











  • @GeethikaAntony its single web myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00











  • Should work without issue, just clear cache. What does deploy:mode:show return? If your mode is Production you have to recompile your theme

    – Vlad Patru
    Mar 14 '18 at 13:36

















Why is there "web/web" ?Remove one "web" and try. Clear your cache as well.

– Geethika Antony
Mar 14 '18 at 9:59





Why is there "web/web" ?Remove one "web" and try. Clear your cache as well.

– Geethika Antony
Mar 14 '18 at 9:59













@GeethikaAntony its single web myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

– Sam
Mar 14 '18 at 10:00





@GeethikaAntony its single web myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

– Sam
Mar 14 '18 at 10:00













Should work without issue, just clear cache. What does deploy:mode:show return? If your mode is Production you have to recompile your theme

– Vlad Patru
Mar 14 '18 at 13:36





Should work without issue, just clear cache. What does deploy:mode:show return? If your mode is Production you have to recompile your theme

– Vlad Patru
Mar 14 '18 at 13:36










3 Answers
3






active

oldest

votes


















0














Use



myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


instead of



myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/web/template/shipping.html


Also if changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.






share|improve this answer
























  • please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00













  • Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

    – Kishan Patadia
    Mar 14 '18 at 10:01











  • I did try but its not overriding the changes

    – Sam
    Mar 14 '18 at 10:17



















0














Use requirejs-config.js. Location of this should be app/code/[VendorName]/[ModuleName]/view/frontend/requirejs-config.js



var config = {
paths: {
'Magento_Checkout/template/shipping': '[VendorName]_[ModuleName]/template/shipping'
}
};



Also clear your static folder files and run php bin/magento static-content:deploy



If you want to override this in your theme follow steps in this How to override html file in magento 2.1






share|improve this answer


























  • var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

    – Sam
    Mar 14 '18 at 11:58













  • No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

    – Geethika Antony
    Mar 14 '18 at 12:19











  • I did try Smartware_Magento_Checkout/template/shipping

    – Sam
    Mar 14 '18 at 12:21











  • Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

    – Geethika Antony
    Mar 14 '18 at 13:06













  • @Sam I have updated my answer please check that also.

    – Geethika Antony
    Mar 14 '18 at 13:12



















0














correct path to override would be the following:



(magento_dir)/app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/shipping.html


delete things under:



/var/viewprocessed/
/pub/static/frontend/


I am assuming you are on linx here.
go to the console and navigate to (magento_dir)/bin/



from within the bin folder, issue the commands in the following order:



./magento setup:static-content:deploy
./magento cache:flush


it takes some time to deploy the static content. so wait before you flush the cache.



Clean the cache in your web browser and try to view your page that you want to override.



Hope this is clear enough and works for you.





share























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f217299%2fhow-to-override-magento-checkout-shipping-html%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Use



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


    instead of



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/web/template/shipping.html


    Also if changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.






    share|improve this answer
























    • please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

      – Sam
      Mar 14 '18 at 10:00













    • Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

      – Kishan Patadia
      Mar 14 '18 at 10:01











    • I did try but its not overriding the changes

      – Sam
      Mar 14 '18 at 10:17
















    0














    Use



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


    instead of



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/web/template/shipping.html


    Also if changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.






    share|improve this answer
























    • please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

      – Sam
      Mar 14 '18 at 10:00













    • Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

      – Kishan Patadia
      Mar 14 '18 at 10:01











    • I did try but its not overriding the changes

      – Sam
      Mar 14 '18 at 10:17














    0












    0








    0







    Use



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


    instead of



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/web/template/shipping.html


    Also if changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.






    share|improve this answer













    Use



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html


    instead of



    myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/web/template/shipping.html


    Also if changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 14 '18 at 9:59









    Kishan PatadiaKishan Patadia

    3,5501923




    3,5501923













    • please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

      – Sam
      Mar 14 '18 at 10:00













    • Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

      – Kishan Patadia
      Mar 14 '18 at 10:01











    • I did try but its not overriding the changes

      – Sam
      Mar 14 '18 at 10:17



















    • please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

      – Sam
      Mar 14 '18 at 10:00













    • Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

      – Kishan Patadia
      Mar 14 '18 at 10:01











    • I did try but its not overriding the changes

      – Sam
      Mar 14 '18 at 10:17

















    please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00







    please check I have corrected the path -> cleared cache myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping.html

    – Sam
    Mar 14 '18 at 10:00















    Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

    – Kishan Patadia
    Mar 14 '18 at 10:01





    Ok. If changes are not affecting, then remove var, generation and pub/static folder and then deploy content again.

    – Kishan Patadia
    Mar 14 '18 at 10:01













    I did try but its not overriding the changes

    – Sam
    Mar 14 '18 at 10:17





    I did try but its not overriding the changes

    – Sam
    Mar 14 '18 at 10:17













    0














    Use requirejs-config.js. Location of this should be app/code/[VendorName]/[ModuleName]/view/frontend/requirejs-config.js



    var config = {
    paths: {
    'Magento_Checkout/template/shipping': '[VendorName]_[ModuleName]/template/shipping'
    }
    };



    Also clear your static folder files and run php bin/magento static-content:deploy



    If you want to override this in your theme follow steps in this How to override html file in magento 2.1






    share|improve this answer


























    • var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

      – Sam
      Mar 14 '18 at 11:58













    • No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

      – Geethika Antony
      Mar 14 '18 at 12:19











    • I did try Smartware_Magento_Checkout/template/shipping

      – Sam
      Mar 14 '18 at 12:21











    • Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

      – Geethika Antony
      Mar 14 '18 at 13:06













    • @Sam I have updated my answer please check that also.

      – Geethika Antony
      Mar 14 '18 at 13:12
















    0














    Use requirejs-config.js. Location of this should be app/code/[VendorName]/[ModuleName]/view/frontend/requirejs-config.js



    var config = {
    paths: {
    'Magento_Checkout/template/shipping': '[VendorName]_[ModuleName]/template/shipping'
    }
    };



    Also clear your static folder files and run php bin/magento static-content:deploy



    If you want to override this in your theme follow steps in this How to override html file in magento 2.1






    share|improve this answer


























    • var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

      – Sam
      Mar 14 '18 at 11:58













    • No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

      – Geethika Antony
      Mar 14 '18 at 12:19











    • I did try Smartware_Magento_Checkout/template/shipping

      – Sam
      Mar 14 '18 at 12:21











    • Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

      – Geethika Antony
      Mar 14 '18 at 13:06













    • @Sam I have updated my answer please check that also.

      – Geethika Antony
      Mar 14 '18 at 13:12














    0












    0








    0







    Use requirejs-config.js. Location of this should be app/code/[VendorName]/[ModuleName]/view/frontend/requirejs-config.js



    var config = {
    paths: {
    'Magento_Checkout/template/shipping': '[VendorName]_[ModuleName]/template/shipping'
    }
    };



    Also clear your static folder files and run php bin/magento static-content:deploy



    If you want to override this in your theme follow steps in this How to override html file in magento 2.1






    share|improve this answer















    Use requirejs-config.js. Location of this should be app/code/[VendorName]/[ModuleName]/view/frontend/requirejs-config.js



    var config = {
    paths: {
    'Magento_Checkout/template/shipping': '[VendorName]_[ModuleName]/template/shipping'
    }
    };



    Also clear your static folder files and run php bin/magento static-content:deploy



    If you want to override this in your theme follow steps in this How to override html file in magento 2.1







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 14 '18 at 13:12

























    answered Mar 14 '18 at 10:07









    Geethika AntonyGeethika Antony

    16812




    16812













    • var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

      – Sam
      Mar 14 '18 at 11:58













    • No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

      – Geethika Antony
      Mar 14 '18 at 12:19











    • I did try Smartware_Magento_Checkout/template/shipping

      – Sam
      Mar 14 '18 at 12:21











    • Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

      – Geethika Antony
      Mar 14 '18 at 13:06













    • @Sam I have updated my answer please check that also.

      – Geethika Antony
      Mar 14 '18 at 13:12



















    • var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

      – Sam
      Mar 14 '18 at 11:58













    • No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

      – Geethika Antony
      Mar 14 '18 at 12:19











    • I did try Smartware_Magento_Checkout/template/shipping

      – Sam
      Mar 14 '18 at 12:21











    • Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

      – Geethika Antony
      Mar 14 '18 at 13:06













    • @Sam I have updated my answer please check that also.

      – Geethika Antony
      Mar 14 '18 at 13:12

















    var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

    – Sam
    Mar 14 '18 at 11:58







    var config = { paths: { 'Magento_Checkout/template/shipping': 'Magento_Checkout/web/template/shipping', getting 404 error

    – Sam
    Mar 14 '18 at 11:58















    No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

    – Geethika Antony
    Mar 14 '18 at 12:19





    No, you have to replace [VendorName] and [ModuleName] with your vendor and module correspondingly.

    – Geethika Antony
    Mar 14 '18 at 12:19













    I did try Smartware_Magento_Checkout/template/shipping

    – Sam
    Mar 14 '18 at 12:21





    I did try Smartware_Magento_Checkout/template/shipping

    – Sam
    Mar 14 '18 at 12:21













    Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

    – Geethika Antony
    Mar 14 '18 at 13:06







    Hi @Sam 'Smartwave' is your module name right? What about the vendor name? We don't need the Magento_checkout part. It should be Smartwave_modulename/template/shipping

    – Geethika Antony
    Mar 14 '18 at 13:06















    @Sam I have updated my answer please check that also.

    – Geethika Antony
    Mar 14 '18 at 13:12





    @Sam I have updated my answer please check that also.

    – Geethika Antony
    Mar 14 '18 at 13:12











    0














    correct path to override would be the following:



    (magento_dir)/app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/shipping.html


    delete things under:



    /var/viewprocessed/
    /pub/static/frontend/


    I am assuming you are on linx here.
    go to the console and navigate to (magento_dir)/bin/



    from within the bin folder, issue the commands in the following order:



    ./magento setup:static-content:deploy
    ./magento cache:flush


    it takes some time to deploy the static content. so wait before you flush the cache.



    Clean the cache in your web browser and try to view your page that you want to override.



    Hope this is clear enough and works for you.





    share




























      0














      correct path to override would be the following:



      (magento_dir)/app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/shipping.html


      delete things under:



      /var/viewprocessed/
      /pub/static/frontend/


      I am assuming you are on linx here.
      go to the console and navigate to (magento_dir)/bin/



      from within the bin folder, issue the commands in the following order:



      ./magento setup:static-content:deploy
      ./magento cache:flush


      it takes some time to deploy the static content. so wait before you flush the cache.



      Clean the cache in your web browser and try to view your page that you want to override.



      Hope this is clear enough and works for you.





      share


























        0












        0








        0







        correct path to override would be the following:



        (magento_dir)/app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/shipping.html


        delete things under:



        /var/viewprocessed/
        /pub/static/frontend/


        I am assuming you are on linx here.
        go to the console and navigate to (magento_dir)/bin/



        from within the bin folder, issue the commands in the following order:



        ./magento setup:static-content:deploy
        ./magento cache:flush


        it takes some time to deploy the static content. so wait before you flush the cache.



        Clean the cache in your web browser and try to view your page that you want to override.



        Hope this is clear enough and works for you.





        share













        correct path to override would be the following:



        (magento_dir)/app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/shipping.html


        delete things under:



        /var/viewprocessed/
        /pub/static/frontend/


        I am assuming you are on linx here.
        go to the console and navigate to (magento_dir)/bin/



        from within the bin folder, issue the commands in the following order:



        ./magento setup:static-content:deploy
        ./magento cache:flush


        it takes some time to deploy the static content. so wait before you flush the cache.



        Clean the cache in your web browser and try to view your page that you want to override.



        Hope this is clear enough and works for you.






        share











        share


        share










        answered 53 secs ago









        ManiMaran AManiMaran A

        1264




        1264






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f217299%2fhow-to-override-magento-checkout-shipping-html%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            what is the purpose of having a “thru cal” on RF PCB?

            What does Gandalf whisper to the Moth on the Orthanc in Isengard?

            magento2 creating a lot of catalogrule_product_temp tables