Log in
Model

StockItemConfiguration

Magento\InventoryConfiguration\Model\StockItemConfiguration

What it does

This class acts as a wrapper around the legacy StockItemInterface to provide inventory configuration settings for products in Magento 2's Multi-Source Inventory (MSI) system.

Developers use it to get and set stock-related configurations like minimum/maximum sale quantities, backorder settings, quantity increments, and stock management flags.

It bridges the older CatalogInventory module with the newer InventoryConfiguration API.

Public Methods

  • isQtyDecimal()
  • setIsQtyDecimal()
  • isShowDefaultNotificationMessage()
  • isUseConfigMinQty()
  • setUseConfigMinQty()
  • getMinQty()
  • setMinQty()
  • isUseConfigMinSaleQty()
  • setUseConfigMinSaleQty()
  • getMinSaleQty()
  • setMinSaleQty()
  • isUseConfigMaxSaleQty()
  • setUseConfigMaxSaleQty()
  • getMaxSaleQty()
  • setMaxSaleQty()
  • isUseConfigBackorders()
  • setUseConfigBackorders()
  • getBackorders()
  • setBackorders()
  • isUseConfigNotifyStockQty()
  • setUseConfigNotifyStockQty()
  • getNotifyStockQty()
  • setNotifyStockQty()
  • isUseConfigQtyIncrements()
  • setUseConfigQtyIncrements()
  • getQtyIncrements()
  • setQtyIncrements()
  • isUseConfigEnableQtyInc()
  • setUseConfigEnableQtyInc()
  • isEnableQtyIncrements()
  • setEnableQtyIncrements()
  • isUseConfigManageStock()
  • setUseConfigManageStock()
  • isManageStock()
  • setManageStock()
  • getLowStockDate()
  • setLowStockDate()
  • isDecimalDivided()
  • setIsDecimalDivided()
  • getStockStatusChangedAuto()
  • setStockStatusChangedAuto()
  • getStockThresholdQty()
  • getExtensionAttributes()
  • setExtensionAttributes()