We would like to check in the checkout cart if the shipping cost is 0,00 and then replace it by text: "free".
Therefore I copied the file
/Magento_Tax/web/template/checkout/cart/totals/shipping.html to our theme and tried the following below.
Sadly that does not seem to work and it does not display any value, so it seems that it does not load the value as numbers I guess.
How can we check the shipping cost using the knockout code and then display text?
<!-- ko if: getValue() < 1.00 --> <td class="amount"> <span class="shipping-free"><!-- ko i18n: 'Free' --><!-- /ko --></span> </td> <!-- /ko --> <!-- ko if: getValue() > 1.00 --> <td class="amount"> <span class="price" data-bind="text: getValue()"></span> </td> <!-- /ko -->