Log in
Factory

InventoryRequestFromOrderFactory

Magento\InventoryShipping\Model\InventoryRequestFromOrderFactory

What it does

This factory class creates InventoryRequest objects from Magento sales orders during the shipping process.

Developers would use this when implementing custom shipping workflows or inventory allocation logic to convert order data into a format suitable for inventory source selection.

It filters eligible order items (excluding virtual, deleted, or parent items) and associates them with the appropriate stock based on the order's website.

Public Methods

  • create()