Log in
Model

ShippingMethodConverter

Magento\Quote\Model\Cart\ShippingMethodConverter

What it does

This class converts shipping rate models into shipping method data transfer objects (DTOs) for API responses.

Developers use it when displaying available shipping methods to customers, ensuring prices are properly converted to quote currency and tax calculations are applied.

It's primarily used in checkout and cart contexts where shipping options need to be presented.

Public Methods

  • modelToDataObject()