How is the selected shipping method's rate calculated?

totals
shipping
quote-totals

(Dmitry Fedyuk) #1

It is done by the Magento\Quote\Model\Quote\Address\Total\Shipping::collect() method: