Carrier
Magento\Shipping\Helper\Carrier
What it does
The Carrier helper class provides utility methods for working with shipping carriers in Magento 2.
Developers use this class to retrieve online carrier configurations, convert weight and dimension measurements between different units (e.g., pounds to kilograms), and check if a country belongs to the European Union.
It's commonly used when building shipping integrations or customizing shipping functionality.
Public Methods
- getOnlineCarrierCodes()
- getCarrierConfigValue()
- convertMeasureWeight()
- convertMeasureDimension()
- getMeasureWeightName()
- getMeasureDimensionName()
- isCountryInEU()