Log in
Other

StockExtension

Magento\InventoryApi\Api\Data\StockExtension

What it does

This extension class adds sales channel functionality to Magento's Stock objects in the Multi-Source Inventory (MSI) system.

Developers use this class to associate sales channels (like websites or store views) with inventory stocks, enabling them to assign different inventory sources to different sales channels for multi-channel inventory management.

Public Methods

  • getSalesChannels()
  • setSalesChannels()