I want to remove the price $0.00 and want to put the static text instead of shipping method text

I am a beginner to Magento 2 and based on my some research I see that this whole block of cart subtotal is coming from


Here some Knockout JS code is mentioned to getTemplate() JS function, which I don't know how to debug and reach to the HTML file from the data is coming

though the file


Looks like containing the data that I want to modify but when I make any changes in it and even flush the cache, and flush the static files. But none of the changes are appearing there.

Can anyone help me on this please? Do I have to run static content deploy to show the changes?

  • If it’s I knockout templates you must clear navigator cache Commented Dec 9, 2017 at 8:13
  • 1
    Try this magento.stackexchange.com/a/191712/34118 - Removing the block will break the summary section, at least in the few times I've tried in v2.1.x
    – Pmclain
    Commented Dec 9, 2017 at 15:25
  • @Pmclain thanks for the comment. I do not want to remove the complete block, just a price $0.00 appearing there. I still want to show the texts.
    – Meet Vora
    Commented Dec 11, 2017 at 0:20
  • @MohamedElMrabet can you guide me how can I clear navigator search? thanks for help.
    – Meet Vora
    Commented Dec 11, 2017 at 0:21
  • Crtl shift supp you can clear navigator cache Commented Dec 11, 2017 at 7:47

2 Answers 2


This price and Shipping carrier name is coming from JS file and not the PHTML file. you can find JS file at below location



You can remove block by using code in your checkout_index.xml layout file like:

Remove block from layout in Magento 2


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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