cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - Show free shipping text instead of $ 0.00

Magento 2 - Show free shipping text instead of $ 0.00

Is there a way to show free shipping text instead of $ 0.00?

 

I tried with couple of answers already posted on magento stackexchange but non of them are working. Tried to change shipping.js to return free price instead of 0. Tried to manually change that span element but i can not access it with dom.


Thanks in advance! Smiley Happy

1 REPLY 1

Re: Magento 2 - Show free shipping text instead of $ 0.00

Hello @pera_peric4 

 

Magento_Tax/template/checkout/shipping_method/price.html responsible for this.

 

 

in that you can write

Spoiler
<!-- ko if: method.price_excl_tax > 1 -->
.............current logic
<!-- /ko -->

<!-- ko if: method.price_excl_tax < 1 -->
Free shipping
<!-- /ko -->

hope it will work for you.

 

if works/help you then mark as solution


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer