Skip to content

Magento 2 : How to overwrite MagentoQuoteModelShippingMethodManagement

I want to make changes in function estimateByAddressId() which is public method.

I tried following : app/etc/di.xml also tried in app/etc/frontend/di.xml

<preference for="MagentoQuoteModelShippingMethodManagement" type="VendorCustomModuleModelShippingMethodManagement" />

But not succeed. Can anyone please help.