When u click on "Ship here" on Checkout Page it calls
magento/rest/default/V1/carts/mine/estimate-shipping-methods-by-address-id
Then it goes to below JS files
magento\vendor\magento\module-checkout\view\frontend\web\js\model\shipping-rate-processor\customer-address.js
magento\vendor\magento\module-checkout\view\frontend\web\js\model\resource-url-manager.js
getUrlForEstimationShippingMethodsByAddressId: function(quote) {
var params = (this.getCheckoutMethod() == 'guest') ? {quoteId: quote.getQuoteId()} : {};
var urls = {
'default': '/carts/mine/estimate-shipping-methods-by-address-id'
};
return this.getUrl(urls, params);
}
magento\vendor\magento\module-quote\Model\ShippingMethodManagement.php
public function estimateByAddressId($cartId, $addressId)
{
echo 1;exit;
}
How above function estimateByAddressId
is Called?