CatalogInventory Module
Adminhtml\Stock\Item
This class extends the standard Stock Item model specifically for use in Magento's admin area. It modifies inventory management behavior by always ena...
Config\Backend\AbstractValue
This abstract base class serves as a foundation for catalog inventory configuration backend models in Magento 2. Developers extend this class when cre...
Config\Backend\Backorders
This backend model handles the system configuration changes for catalog inventory backorders settings. When a store admin enables or disables backorde...
Config\Backend\Managestock
This class handles the backend logic when the 'Manage Stock' configuration setting is changed in Magento admin. When a store administrator enables or...
Config\Backend\ShowOutOfStock
This class serves as a backend model for the 'Show Out of Stock Products' configuration setting in Magento's Catalog Inventory module. Developers inte...
Config\Source\NotAvailableMessage
This class provides configuration options for inventory availability messages in Magento's admin panel. Developers use it to define what message displ...
Configuration
This class provides centralized access to Magento 2's catalog inventory configuration settings. Developers use it to retrieve store-level inventory se...
Indexer\ProductPriceIndexFilter
This class filters out-of-stock products from Magento's price index when the 'Display Out of Stock Products' setting is disabled. Developers would use...
Indexer\Stock
This class manages the catalog inventory stock indexer, which updates the indexed stock status data for products. Developers use this when they need t...
Indexer\Stock\AbstractAction
This abstract base class handles the reindexing of product stock status data in Magento 2. Developers would extend this class when creating custom sto...
Indexer\Stock\CacheCleaner
This class optimizes cache cleaning during stock indexing by only invalidating product and category caches when stock status actually changes. Develop...
Indexer\Stock\Processor
This processor class manages the execution of the catalog inventory stock indexer in Magento 2. Developers use this class to programmatically trigger...
ProductCollectionStockCondition
This class modifies product collections by adding stock status filters and joining stock data to each product. It automatically filters out products t...
Product\CopyConstructor\CatalogInventory
This class handles copying inventory/stock data when a product is duplicated in Magento 2. It ensures the new duplicate product inherits appropriate i...
Quote\Item\QuantityValidator
This class validates quote item quantities against inventory stock levels when products are added to or updated in the shopping cart. Developers would...
ResourceModel\Product\StockStatusBaseSelectProcessor
This class filters product collection queries to show only in-stock products when the 'Show Out of Stock Products' setting is disabled in Magento admi...
ResourceModel\Stock
This resource model manages stock-related database operations for catalog inventory in Magento 2. Developers use it to lock product stock records duri...
ResourceModel\StockStatusFilter
This class filters product queries to show only in-stock items by adding stock status joins and conditions to database SELECT queries. Developers use...
ResourceModel\Stock\Item
This resource model manages database operations for catalog inventory stock items in Magento 2. Developers use it to load stock data by product ID, up...
ResourceModel\Stock\Status
This resource model manages product stock status data in the cataloginventory_stock_status table, tracking which products are in stock across differen...
ResourceModel\Stock\StockCriteria
This class defines search criteria for querying stock inventory data in Magento 2. Developers use it to filter stock records by scope (website) and co...
ResourceModel\Stock\StockCriteriaMapper
This class maps search criteria to database queries for Stock inventory entities. It extends GenericMapper to provide automatic translation of filter...
Source\Backorders
This source model provides the available backorder options for product inventory configuration in Magento 2. Developers use this class to populate dro...
Source\Stock
This class serves as a source model for product stock status attributes, providing options for 'In Stock' and 'Out of Stock' statuses. Developers use...
Source\StockConfiguration
This class serves as a value source adapter for retrieving default stock configuration values in Magento 2. It wraps the StockConfigurationInterface t...
Stock
This class represents a catalog inventory stock entity in Magento 2, managing stock information like stock ID, website ID, and stock name. Developers...
StockIndex
This class manages the stock status index for products in Magento 2, ensuring inventory availability is correctly calculated and stored. Developers wo...
StockItemValidator
This validator ensures stock item data integrity when saving or updating product inventory in Magento 2. Developers use this class to validate that st...
StockManagement
This class manages inventory stock operations for product sales in Magento 2. Developers use it to subtract quantities when orders are placed (registe...
StockRegistry
This class serves as a central registry for managing inventory stock data in Magento 2. Developers use it to retrieve stock items, stock status, and l...
StockRegistryPreloader
This class optimizes database queries by preloading stock inventory data (quantities and availability status) for multiple products at once into Magen...
StockRegistryProvider
This class provides access to inventory stock data (stock, stock items, and stock status) for products in Magento 2. Developers use it to retrieve cac...
StockRegistryStorage
This class acts as an in-memory cache storage for inventory-related data in Magento 2. Developers use it to temporarily store and retrieve stock infor...
StockState
This class serves as a facade for checking product stock availability and quantities in Magento 2. Developers use it to verify if products are in stoc...
StockStateException
This exception is thrown when inventory operations cannot be completed due to stock status issues, such as insufficient quantity or out-of-stock condi...
StockStateProvider
This class manages inventory stock state validation and calculations for products in Magento 2. Developers use it to verify stock availability, check...
StockStatusApplier
This deprecated class was used to manage a flag indicating whether a product collection request originated from a search result applier, primarily for...
Stock\Item
This model class manages inventory stock information for individual products in Magento 2. Developers use it to get or set stock quantities, manage st...
Stock\Status
This class represents the stock status of a product, tracking whether a product is in stock or out of stock along with its quantity. Developers use th...
Stock\StockItemChecker
This class determines whether a stock item (inventory record) has been modified by comparing its current data against the saved database version. Deve...
Stock\StockItemRepository
This repository class manages CRUD operations for product stock items in Magento 2's inventory system. Developers use it to save, retrieve, delete, an...
Stock\StockRepository
This repository class manages CRUD operations for inventory stock entities in Magento 2. Developers use it to save, retrieve, list, and delete stock r...
Stock\StockStatusRepository
This class manages CRUD operations for product stock status records in Magento 2. Developers use it to save, retrieve, list, and delete stock status i...