Hide Shipping Method Title from Order Summary
-
24-02-2021 - |
Solution
Please override your file
vendor/magento/module-checkout/view/frontend/web/js/view/summary/shipping.js
to
/app/design/frontend/Vendor/ThemeName/Magento_Checkout/web/js/view/summary/shipping.js
Change Below Function Your Theme
getShippingMethodTitle: function () {
var shippingMethod,
shippingMethodTitle = '';
if (!this.isCalculated()) {
return '';
}
shippingMethod = quote.shippingMethod();
if (typeof shippingMethod['method_title'] !== 'undefined') {
shippingMethodTitle = shippingMethod['method_title'];
}
return shippingMethod ? shippingMethodTitle : '';
},
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange