Log in
Model

InventoryConfiguration

Magento\InventoryConfiguration\Model\InventoryConfiguration

What it does

This class provides a centralized interface for retrieving inventory configuration settings in Magento 2's Multi-Source Inventory (MSI) system.

Developers use it to check stock management rules like minimum/maximum sale quantities, backorder settings, quantity increments, and stock notification thresholds.

It acts as a wrapper around the legacy CatalogInventory configuration to maintain backward compatibility while supporting the newer MSI architecture.

Public Methods

  • canSubtractQty()
  • getMinQty()
  • getMinSaleQty()
  • getMaxSaleQty()
  • getNotifyStockQty()
  • isQtyIncrementsEnabled()
  • getQtyIncrements()
  • getBackorders()
  • getManageStock()
  • isCanBackInStock()
  • isShowOutOfStock()
  • isAutoReturnEnabled()
  • isDisplayProductStockStatus()