0

I notice that everytime I change Country, State/Province in checkout page, it reloads the Shipping Methods section. Depending on the country/state, it would be 1 or 2 shipping methods.

If I choose UK, there is only 1 shipping method

enter image description here

If I choose US; there is 2 shipping methods enter image description here

I wonder how it can listen to the input changes and which function in checkout module updates shipping methods. Could you guys show me?

0

The below file is resposible for this shipping estimation functionality.

/vendor/magento/module-quote/Model/ShippingMethodManagement.php

Here has the method like:

  1. estimateByAddress
  2. estimateByExtendedAddress
  3. estimateByAddressId
  4. getEstimatedRates
  5. getShippingMethods
| improve this answer | |

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.