CatalogInventory Module

Adminhtml\Stock\Item

Model

This class extends the standard Stock Item model specifically for use in Magento's admin area. It modifies inventory management behavior by always ena...

Api\Data\StockCollectionInterface

Interface

This interface defines a collection container for Stock objects in Magento 2's inventory system. Developers would use this when working with multiple...

Api\Data\StockInterface

Interface

This interface defines the data structure for inventory stock entities in Magento 2, representing a physical or virtual warehouse location. Developers...

Api\Data\StockItemCollectionInterface

Interface

This interface defines a collection of stock item data objects returned from search operations in Magento's inventory system. Developers use it to wor...

Api\Data\StockItemInterface

Interface

This interface defines the contract for managing product inventory stock items in Magento 2. Developers use it to get and set inventory properties lik...

Api\Data\StockStatusCollectionInterface

Interface

This interface defines a collection of stock status items for products in Magento 2's inventory system. Developers use it to retrieve, set, and filter...

Api\Data\StockStatusInterface

Interface

This interface defines the contract for managing product stock status data in Magento 2, including inventory quantities, stock availability (in/out of...

Api\RegisterProductSaleInterface

Interface

This interface defines a contract for reducing product quantities from stock when products are sold. Developers would implement this interface to hand...

Api\RevertProductSaleInterface

Interface

This interface defines a contract for reverting product sales in inventory, typically used when an order is cancelled or refunded and stock quantities...

Api\StockConfigurationInterface

Interface

This interface defines methods for retrieving and managing catalog inventory configuration settings in Magento 2, such as minimum/maximum sale quantit...

Api\StockCriteriaInterface

Interface

This interface defines the contract for building search criteria when querying stock/inventory data in Magento 2. Developers would use implementations...

Api\StockIndexInterface

Interface

This interface defines a contract for rebuilding the stock index in Magento 2's catalog inventory system. Developers would implement this interface to...

Api\StockItemCriteriaInterface

Interface

This interface defines criteria methods for filtering and querying stock item collections in Magento 2's inventory system. Developers would use this t...

Api\StockItemRepositoryInterface

Repository

This interface defines the contract for managing stock item data in Magento's inventory system. Developers use it to save, retrieve, update, and delet...

Api\StockManagementInterface

Interface

This interface defines the contract for managing stock quantities in Magento 2's catalog inventory system. Developers would use implementations of thi...

Api\StockRegistryInterface

Interface

This interface defines the contract for managing product inventory stock data in Magento 2. Developers use it to retrieve stock information, check pro...

Api\StockRepositoryInterface

Repository

This repository interface provides CRUD operations for managing inventory stock data in Magento 2. Developers use it to save, retrieve, search, and de...

Api\StockStateInterface

Interface

This interface defines methods for checking and managing product stock availability in Magento 2. Developers use it to verify if products are in stock...

Api\StockStatusCriteriaInterface

Interface

This interface defines criteria methods for filtering and retrieving stock status information in Magento 2's inventory system. Developers would use th...

Api\StockStatusRepositoryInterface

Repository

This repository interface manages CRUD operations for product stock status data in Magento 2's inventory system. Developers use it to retrieve, save,...

Config\Backend\AbstractValue

Model

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

Model

This backend model handles the system configuration changes for catalog inventory backorders settings. When a store admin enables or disables backorde...

Config\Backend\Managestock

Model

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

Model

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

Model

This class provides configuration options for inventory availability messages in Magento's admin panel. Developers use it to define what message displ...

Configuration

Model

This class provides centralized access to Magento 2's catalog inventory configuration settings. Developers use it to retrieve store-level inventory se...

Data

Helper

This helper class defines error code constants used throughout Magento's inventory management system. Developers reference these constants when valida...

Indexer\ProductPriceIndexFilter

Model

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

Model

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

Model

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

Model

This class optimizes cache cleaning during stock indexing by only invalidating product and category caches when stock status actually changes. Develop...

Indexer\Stock\Processor

Model

This processor class manages the execution of the catalog inventory stock indexer in Magento 2. Developers use this class to programmatically trigger...

Minsaleqty

Helper

This helper class manages the minimum sale quantity (min_sale_qty) configuration values for different customer groups in Magento 2. Developers use it...

Model\AddStockStatusToCollection

Collection

This plugin class automatically adds stock status filtering to product collections before they are loaded. Developers use this to ensure that product...

Model\ResourceModel\Indexer\StockFactory

Factory

This factory class creates stock indexer objects for CatalogInventory, which handle the indexing of product stock data. Developers would use this when...

Model\ResourceModel\QtyCounterInterface

Interface

This interface defines a contract for correcting inventory quantities of products in stock. Developers would implement this interface when they need t...

Model\ResourceModel\StockStatusFilterInterface

Interface

This interface defines a contract for filtering product queries based on stock status. Developers use implementations of this interface to add in-stoc...

Model\ResourceModel\Stock\Collection

Collection

This collection class manages groups of Stock entities in Magento's inventory system. Developers use it to retrieve and manipulate multiple stock reco...

Model\Spi\StockRegistryProviderInterface

Interface

This interface defines methods for retrieving inventory-related data in Magento 2, including stock information, stock items, and stock status for prod...

Model\Spi\StockStateProviderInterface

Interface

This interface defines methods for checking and validating product stock availability and quantities in Magento 2. Developers implement this interface...

Model\StockStatusApplierInterface

Interface

This deprecated interface was designed to flag whether a request originated from SearchResultApplier when applying stock status filters to product col...

ProductCollectionStockCondition

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

This class maps search criteria to database queries for Stock inventory entities. It extends GenericMapper to provide automatic translation of filter...

Source\Backorders

Model

This source model provides the available backorder options for product inventory configuration in Magento 2. Developers use this class to populate dro...

Source\Stock

Model

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

Model

This class serves as a value source adapter for retrieving default stock configuration values in Magento 2. It wraps the StockConfigurationInterface t...

Stock

Model

This class represents a catalog inventory stock entity in Magento 2, managing stock information like stock ID, website ID, and stock name. Developers...

Stock

Helper

This helper class manages stock status operations for products and product collections in Magento 2. Developers use it to assign stock availability in...

StockIndex

Model

This class manages the stock status index for products in Magento 2, ensuring inventory availability is correctly calculated and stored. Developers wo...

StockItemValidator

Model

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

Model

This class manages inventory stock operations for product sales in Magento 2. Developers use it to subtract quantities when orders are placed (registe...

StockRegistry

Model

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

Model

This class optimizes database queries by preloading stock inventory data (quantities and availability status) for multiple products at once into Magen...

StockRegistryProvider

Model

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

Model

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

Model

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

Model

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

Model

This class manages inventory stock state validation and calculations for products in Magento 2. Developers use it to verify stock availability, check...

StockStatusApplier

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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...