Greetings, can someone please tell me which files to edit for the Shopping Cart and Order Summary pages. My changes in content.html and cart-items.html do not show on frontend.
Thanks for your attention.
Hi @Sheba
File path should be below:
vendor/magento/module-tax/view/frontend/web/template/checkout/summary/shipping.html
Add your custom <span class="title">Custom Text</span> text like below example
<tr class="totals shipping excl"> <th class="mark" scope="row"> <span class="title">Custom Text</span> <span class="label" data-bind="i18n: title"></span> <span class="value" data-bind="text: getShippingMethodTitle()"></span> </th> <td class="amount"> <!-- ko if: isCalculated() --> <span class="price" data-bind="text: getValue(), attr: {'data-th': title}"></span> <!-- /ko --> <!-- ko ifnot: isCalculated() --> <span class="not-calculated" data-bind="text: getValue(), attr: {'data-th': title}"></span> <!-- /ko --> </td> </tr> <!-- /ko -->
Run below commands:
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
It may help you!
Problem Solved ? Please click on 'Kudos' & Accept as Solution!
Thanks for your response but it did not work. Just need to change wording on the shopping cart and checkout pages.
Was able to make a word change in /app/design/frontend/theme/Magento_Checkout/web/template/summary/cart-items.html