Log in
Helper

Carrier

Magento\Shipping\Helper\Carrier

What it does

This helper class provides utility methods for working with shipping carriers in Magento 2.

Developers use it to retrieve online carrier codes, get carrier configuration values, convert weight and dimension measurements between different units (e.g., pounds to kilograms, inches to centimeters), and check if a country is within the European Union.

It's commonly used in shipping modules when processing shipments or configuring carrier settings.

Public Methods

  • getOnlineCarrierCodes()
  • getCarrierConfigValue()
  • convertMeasureWeight()
  • convertMeasureDimension()
  • getMeasureWeightName()
  • getMeasureDimensionName()
  • isCountryInEU()