Log in

Directory Module

AllowedCountries

Model

This class retrieves the list of allowed countries based on Magento's configuration settings for different scopes (website, store, or store group). De...

Config\Backend\WeightUnit

Model

This backend model validates and saves the weight unit configuration setting in Magento's admin panel. Developers would use this class when customizin...

Config\Source\Allregion

Model

This class provides a formatted list of all regions/states grouped by country for use in configuration dropdowns and form fields. Developers use this...

Config\Source\Country

Model

This class provides a list of countries as option arrays for use in dropdown menus and multi-select fields in Magento's admin panel and frontend forms...

Config\Source\WeightUnit

Model

This class provides a list of available weight unit options (pounds and kilograms) for Magento configuration settings. Developers use this as a source...

Country

Model

This model class represents a country in Magento 2's directory system. Developers use it to load country data by code, retrieve associated regions/sta...

CountryInformationAcquirer

Model

This class retrieves country and region information from Magento's directory data, formatting it into structured data objects. Developers use it to ge...

Country\Format

Model

This model manages country-specific address format configurations in Magento. Developers use it to retrieve or set how addresses should be formatted f...

Country\Postcode\Config

Model

This class provides access to country-specific postcode validation patterns and formats configured in Magento. Developers use it to retrieve postcode...

Country\Postcode\Validator

Model

This class validates postal codes against country-specific format patterns defined in the system configuration. Developers use this validator when pro...

Currency

Model

This class manages currency operations in Magento 2, including currency code retrieval, conversion between currencies using exchange rates, and format...

CurrencyConfig

Model

This class retrieves currency configuration values (allowed, base, and default currencies) from Magento store settings. Developers use it to get curre...

CurrencyInformationAcquirer

Model

This class retrieves comprehensive currency information for the current store, including base currency, default display currency, available currencies...

Currency\DefaultLocator

Model

This class determines the default base currency code for a given scope (store, website, or store group) based on request parameters. Developers use it...

Currency\Filter

Model

This class formats and converts monetary values into currency strings with proper locale formatting. Developers use it when they need to display price...

Currency\Import\AbstractImport

Model

This abstract class provides the foundation for importing currency exchange rates from external sources into Magento 2. Developers extend this class t...

Currency\Import\Config

Model

This configuration class manages currency import services in Magento 2. It validates and stores service definitions (name, class, label) during constr...

Currency\Import\CurrencyConverterApi

Model

This class imports currency exchange rates from the free.currconv.com API service. Developers use this when they need to automatically fetch and updat...

Currency\Import\FixerIo

Model

This class imports currency exchange rates from the Fixer.io API service. Developers use this to automatically update currency conversion rates in Mag...

Currency\Import\FixerIoApiLayer

Model

This class imports currency exchange rates from the Fixer API (via APILayer.com) into Magento 2. Developers would use or extend this class when implem...

Data\CountryInformation

Model

This data model class represents comprehensive country information in Magento 2, storing details like country ID, two-letter and three-letter abbrevia...

Data\CurrencyInformation

Model

This data model class stores and manages comprehensive currency information for a Magento store, including base currency code/symbol, display currency...

Data\ExchangeRate

Model

This data model represents currency exchange rate information in Magento 2. Developers use this class to handle currency conversion data, storing the...

Data\RegionInformation

Model

This is a data transfer object (DTO) that represents region/state information within a country, such as California or Texas. Developers use this class...

Observer

Model

This observer class handles the scheduled automatic import and update of currency exchange rates in Magento 2. It runs via cron job to fetch rates fro...

PriceCurrency

Model

PriceCurrency handles currency conversion and formatting for prices in Magento 2. Developers use this class when they need to convert amounts between...

Region

Model

This model class represents a geographic region (state/province) within a country in Magento 2's directory system. Developers use this class to retrie...

RegionProvider

Model

This class provides region (state/province) data for countries in JSON format. Developers use it to populate address form dropdowns or get structured...

ResourceModel\Country

Model

This resource model handles database operations for country data in Magento 2. Developers use it to load country information from the directory_countr...

ResourceModel\Country\Format

Model

This resource model manages database operations for country address formats in Magento 2. It defines how address formats are stored and retrieved from...

ResourceModel\Currency

Model

This resource model manages currency data and exchange rates in Magento 2. Developers use it to retrieve currency conversion rates between different c...

ResourceModel\Region

Model

This resource model handles database operations for geographical regions (states/provinces) in Magento 2. Developers use it to load region data by cod...

TopDestinationCountries

Model

This class retrieves a list of top destination countries configured in the Magento admin under Store Configuration. Developers use this to get preferr...