Status
Magento\CatalogInventory\Model\ResourceModel\Stock\Status
What it does
This resource model manages product stock status data in the cataloginventory_stock_status table, tracking which products are in stock across different websites.
Developers use this class to save, retrieve, and filter product stock statuses, add stock data to product collections, and determine product availability per website.
It's commonly used in inventory management, product listings, and stock-related queries, though it's deprecated in favor of the Multi Source Inventory (MSI) system.
Public Methods
- saveProductStatus()
- getProductsStockStatuses()
- getWebsiteStores()
- getProductsType()
- getProductCollection()
- addStockStatusToSelect()
- addStockDataToCollection()
- addIsInStockFilterToCollection()
- getProductStatus()