Ketika Anda mengklik "Kirim di sini" pada Halaman Checkout yang dipanggilnya
magento / sisanya / default / V1 / kereta / tambang / estimasi-pengiriman-metode-dengan-alamat-id
Kemudian menuju ke file JS di bawah ini
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;
}
Bagaimana fungsi di atas estimateByAddressId
dipanggil?