Log in

InventoryIndexer Module

AreMultipleProductsSalable

Model

This class checks whether multiple products are available for sale (salable) in a specific stock. Developers use it when they need to verify inventory...

CompositeProductSalabilityChangeProcessor

Model

This class implements a composite pattern to execute multiple product salability change processors in sequence. Developers use it to coordinate variou...

GetProductsIdsToProcess

Model

This class compares product stock/salability status before and after a reindex operation to identify which products actually changed state. Developers...

GetStockItemData\CacheStorage

Model

This class provides in-memory caching for stock item data during inventory indexing operations. Developers use this to temporarily store and retrieve...

IndexerConfig

Model

This class provides configuration access for the inventory indexer strategy. Developers use this class to retrieve the active reindex strategy setting...

IsProductSalable

Model

This class determines if a product is available for purchase (salable) in a specific stock/warehouse. Developers use this to check product availabilit...

Queue\GetSalabilityDataForUpdate

Model

This class detects changes in product salability (stock availability) after inventory reservations are created or modified. It compares the newly calc...

Queue\ReservationData

Model

This is a data transfer object (DTO) that encapsulates reservation queue request information in Magento's Multi-Source Inventory system. Developers us...

Queue\UpdateIndexSalabilityStatus

Model

This class recalculates product salability status in the inventory index when reservations change (e.g., after orders are placed). It processes both s...

Queue\UpdateIndexSalabilityStatus\IndexProcessor

Model

This class processes inventory index updates for product salability status in a queue-based system. It ensures the main inventory index exists, retrie...

Queue\UpdateIndexSalabilityStatus\UpdateLegacyStock

Model

This class updates legacy stock status records when inventory reservations are placed or removed. Developers use it to maintain backward compatibility...

ReindexStrategyOptions

Model

This class provides configuration options for inventory reindexing strategies in Magento 2. Developers use this to define whether inventory reindexing...

ResourceModel\GetCategoryIdsByProductIds

Model

This class retrieves all category IDs associated with given product IDs by querying the catalog_category_product table. Developers would use this when...

ResourceModel\GetProductIdsBySourceItemIds

Model

This class retrieves product IDs that are associated with specific source item IDs in Magento's Multi-Source Inventory (MSI) system. Developers use th...

ResourceModel\GetProductIdsByStockIds

Model

This class retrieves product entity IDs associated with specific stock IDs from the inventory index tables. Developers use this when they need to iden...

ResourceModel\GetSourceCodesBySourceItemIds

Model

This resource model retrieves source codes mapped to their corresponding source item IDs from the database. Developers use this class when they need t...

ResourceModel\GetStockItemData

Model

This class retrieves stock item data (quantity and salability status) for a specific product SKU and stock ID. Developers use this when they need to c...

ResourceModel\GetStockItemDataCache

Model

This class provides cached access to stock item data in Magento's Multi-Source Inventory system. Developers use this class to efficiently retrieve sto...

ResourceModel\GetStockItemsData

Model

This class retrieves stock item data (quantity and salability status) for multiple product SKUs from a specific stock. Developers use this when they n...

ResourceModel\GetStockItemsDataCache

Model

This class provides cached access to stock item data for multiple SKUs and a specific stock. It acts as a performance optimization layer by checking c...

ResourceModel\IsInvalidationRequiredForSource

Model

This resource model determines whether the inventory index needs to be invalidated (recalculated) when a source's enabled/disabled status changes. Dev...

ResourceModel\StockItemDataHandler

Model

This class retrieves stock item data (quantity and salability) from the legacy cataloginventory_stock_item table for products assigned to the default...

ResourceModel\UpdateIsSalable

Model

This class updates the 'is_salable' status for products in Magento's inventory index tables. Developers would use this when they need to update whethe...

ResourceModel\UpdateLegacyStockStatus

Model

This class updates the legacy CatalogInventory stock status table when Multi-Source Inventory (MSI) stock data changes. Developers use this to maintai...

StockIndexTableNameResolver

Model

This class resolves the actual database table name for a stock's inventory index based on the stock ID. Developers use this when they need to query or...