How is the multishipping order placement scenario implemented?

1. The multishipping/checkout/overview page:

The «Place Order» button sends request to multishipping/checkout/overviewPost:

2. Magento\Multishipping\Controller\Checkout\OverviewPost::execute()

Note that Magento 2 creates separate orders for each shipping address:

3. Magento\Multishipping\Model\Checkout\Type\Multishipping::createOrders()

4. Magento\Multishipping\Model\Checkout\Type\Multishipping::_prepareOrder()

5. Magento\Quote\Model\Quote\Address\ToOrder::convert()

6. Magento\Quote\Model\Quote\Payment\ToOrderPayment::convert()

See also: