0

I want to hide shipping method from cart and emails.

  1. /checkout/cart/
  2. /checkout/#payment enter image description here

enter image description here

0

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 : '';
    },
1
  • Hi Ramesh, I've not found this kind of method in shipping.js Oct 18 at 10:29

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.