1

Please follow the below blog https://meetanshi.com/blog/change-shipping-price-on-address-field-change-in-magento-2-custom-shipping-method/ this is helpfull for you to refresh shipping rate when change zipcode and country


1

You can not directly get quote in collect rate. The $this->checkoutSession->getQuote() will call your collectRates function at the end, so you will end up getting infinite loop. the $request variable will also give you almost all the data you need, like $request->getAllItems() $request->getOrderSubtotal(); $request->getDestCity(); etc So ...


1

You can easily extend the class Carrier.php by using preference in di.xml file in you custom module by extending the core functionality. e.g: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Fedex\Model\...


Only top voted, non community-wiki answers of a minimum length are eligible