0

In order summary (Cart page), Shipping Method is displayed as:

(Method Name - Method Title)

Is it possible to remove Method Title and display just the Name?

enter image description here

  • yeah just override the summary template – magefms Mar 29 at 15:22
2

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 : '';
    },

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.