1

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

/vendor/magento/module-checkout/view/frontend/web/template/summary/totals.html

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

/vendor/magento/module-checkout/view/frontend/web/template/summary/shupping.html

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?

7
  • If it’s I knockout templates you must clear navigator cache 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
    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
    Dec 11, 2017 at 0:20
  • @MohamedElMrabet can you guide me how can I clear navigator search? thanks for help.
    – Meet Vora
    Dec 11, 2017 at 0:21
  • Crtl shift supp you can clear navigator cache Dec 11, 2017 at 7:47

2 Answers 2

1

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

/vendor/magento/module-checkout/view/frontend/web/js/view/summary/shipping.js

0

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 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.