InventoryCatalog Module
BulkInventoryTransfer
This class handles the bulk transfer of inventory quantities from one source location to another in Magento's Multi-Source Inventory (MSI) system. Dev...
BulkPartialInventoryTransfer
This class handles bulk partial inventory transfers between two warehouse sources in Magento's Multi-Source Inventory (MSI) system. Developers use thi...
BulkSourceAssign
This class handles bulk assignment of inventory sources to multiple products in Magento 2's Multi-Source Inventory (MSI) system. Developers use this w...
BulkSourceUnassign
This class handles the bulk unassignment of inventory sources from multiple products in Magento's Multi-Source Inventory (MSI) system. Developers use...
Cache\LegacyStockStatusStorage
This class provides a temporary in-memory cache for legacy Magento CatalogInventory stock status data. Developers use it to avoid repeated database qu...
Cache\ProductIdsBySkusStorage
This class provides in-memory caching for product ID lookups by SKU during a single request. Developers use it to avoid repeated database queries when...
Cache\ProductSkusByIdsStorage
This class provides a runtime cache storage for product ID to SKU mappings in Magento's Multi-Source Inventory (MSI) system. Developers use it to temp...
Cache\ProductTypesBySkusStorage
This class provides a runtime cache storage for product SKU and product type pairs in Magento's inventory system. Developers use it to temporarily sto...
DefaultSourceProvider
This class provides the code identifier for Magento's default inventory source. Developers use this service when they need to reference the default so...
DefaultStockProvider
This class provides the ID of Magento's default stock, which is always 1. Developers use this when they need to reference the default stock in invento...
DeleteSourceItemsBySkus
This class handles the deletion of inventory source items for multiple products identified by their SKUs. Developers use this service when products ar...
GetDefaultSourceItemBySku
This model retrieves the default source inventory item for a product by its SKU. Developers use this when they need to check inventory levels or sourc...
GetParentSkusOfChildrenSkus
This class retrieves parent product SKUs for given child product SKUs, primarily used for configurable, grouped, or bundled products. Developers use t...
GetProductIdsBySkus
This class retrieves product IDs by their SKUs. Developers use it when they need to convert an array of product SKUs into their corresponding database...
GetProductIdsBySkusCache
This class retrieves product IDs by their SKUs with caching functionality to improve performance. It first checks the cache for existing SKU-to-ID map...
GetSkusByProductIds
This class retrieves product SKUs from an array of product IDs, ensuring all requested products exist. Developers use this when they need to convert p...
GetSkusByProductIdsCache
This class retrieves product SKUs by their IDs while implementing a caching layer to improve performance. It first checks the cache for each requested...
GetSourceItemsBySkuAndSourceCodes
This class retrieves inventory source items for a specific product SKU from multiple warehouse/source locations. Developers use it when they need to c...
GetStockIdForByStoreId
This class retrieves the stock ID associated with a specific store in Magento's Multi-Source Inventory (MSI) system. Developers use this when they nee...
GetStockIdForCurrentWebsite
This service class determines which inventory stock is assigned to the current website context. Developers use it when they need to retrieve the stock...
IsSingleSourceMode
This class determines if Magento is running in single source mode by checking if there are fewer than 2 enabled inventory sources. Developers use this...
IsSingleSourceModeCache
This class provides a cached wrapper for checking if Magento is running in single source mode (only one inventory source configured). It stores the re...
LegacyStockStatusCache
This class optimizes performance by preloading and caching legacy stock status data for multiple products at once. Developers use it to batch-load sto...
PartialInventoryTransferItem
This class represents a single item in a partial inventory transfer operation in Magento's Multi-Source Inventory (MSI) system. Developers use this da...
PriceIndexUpdateProcessor
This processor automatically updates product price indexes when inventory source items change and product saleable status changes. Developers use this...
ResourceModel\AddStockStatusToSelect
This class adds stock availability status to database SELECT queries by joining the inventory stock index table. Developers use this when building pro...
ResourceModel\BulkInventoryTransfer
This class handles bulk transfer of inventory quantities from one source to another in Magento's Multi-Source Inventory (MSI) system. Developers use t...
ResourceModel\BulkSourceAssign
This class handles bulk assignment of inventory sources to multiple products by SKU. Developers use it when they need to assign one or more inventory...
ResourceModel\BulkSourceUnassign
This class handles the bulk removal of source assignments from products in Magento's Multi-Source Inventory (MSI) system. Developers use this when the...
ResourceModel\BulkZeroLegacyStockItem
This class performs bulk updates to set inventory quantities to zero in the legacy CatalogInventory stock system. Developers use this when migrating t...
ResourceModel\DecrementQtyForLegacyStock
This class synchronizes inventory quantity decrements from the MSI (Multi-Source Inventory) system back to Magento's legacy single-source stock manage...
ResourceModel\GetProductTypesBySkus
This class retrieves product types for a list of product SKUs from the database. Developers use this when they need to determine what type of products...
ResourceModel\GetProductTypesBySkusCache
This class retrieves product types for given SKUs with caching optimization. It first checks the cache for each SKU, then only queries the database fo...
ResourceModel\SetDataToLegacyStockItem
This class updates the legacy cataloginventory_stock_item table with quantity and stock status data for a product identified by SKU. Developers use th...
ResourceModel\SetDataToLegacyStockStatus
This class synchronizes inventory data from Magento's new Multi-Source Inventory (MSI) system to the legacy cataloginventory_stock_status table. Devel...
ResourceModel\SortableBySaleabilityProvider
This class determines whether product collections can be sorted by stock availability (saleability) in Magento's Multi-Source Inventory (MSI) system....
ResourceModel\StockStatusExpressionForDefaultStock
This class generates SQL expressions for determining product stock status specifically for Magento's default stock source. It's used during stock inde...
ResourceModel\StockStatusFilter
This class filters product queries to show only in-stock items for Multi Source Inventory (MSI) stocks. Developers use it when building product collec...
ResourceModel\TransferInventoryPartially
This class handles the partial transfer of inventory quantities between two source locations in Magento's Multi-Source Inventory (MSI) system. Develop...
ResourceModel\UpdateLegacyStockItems
This class updates legacy stock item records in the cataloginventory_stock_item table for specified products. Developers use this to synchronize inven...
SortingAdjustment
This class manages the execution order of Magento indexers to ensure proper dependency sequencing. It ensures the Stock indexer runs first, followed b...
SourceItemsProcessor
This class processes and synchronizes inventory source items for a product SKU. Developers use it when updating product inventory across multiple sour...
SourceItemsSaveSynchronization\SetDataToLegacyCatalogInventory
This class synchronizes inventory data from the new Multi-Source Inventory (MSI) system to Magento's legacy CatalogInventory tables. Developers use th...
Source\Validator\DefaultSourceDisableValidator
This validator ensures that the default inventory source in Magento's Multi-Source Inventory (MSI) system cannot be disabled. Developers would encount...
Source\Validator\PartialTransferItemsValidator
This validator ensures that inventory transfers between sources are valid by checking that the origin source has sufficient quantity and that both ori...
Source\Validator\PartialTransferSourceValidator
This validator ensures that inventory transfers between sources are valid in Magento's Multi-Source Inventory (MSI) system. Developers use this class...
StockSourceLink\Validator\AssignToDefaultStockDefaultSourceValidator
This validator ensures that Default Stock and Default Source can only be linked together in their initial assignment, preventing any other stock-sourc...
StockStatusApplier
This class is a deprecated utility that was used to track whether a product collection request originated from a search result applier. It provided a...
UpdateDefaultStock
This class updates the default stock status and quantity for products in Magento's legacy stock system based on Multi-Source Inventory (MSI) data. Dev...
UpdateInventory
This class handles asynchronous inventory updates for products in Magento 2's Multi-Source Inventory (MSI) system. Developers use it to update stock q...
UpdateInventory\InventoryData
This is a data transfer object (DTO) that encapsulates inventory information needed for mass updating stock items in Magento's Multi-Source Inventory...
UpdatePriceIndexOnProductSalabilityChange
This class updates the product price index when product stock availability (salability) changes. Developers would use this when inventory levels chang...
UpdateSourceItemBasedOnLegacyStockItem
This class synchronizes legacy CatalogInventory stock item data with the new Multi-Source Inventory (MSI) system by updating or creating source items...