/** * Submit the order, returning the created order object if successful. * * @return Mage_Sales_Model_Order|null */ protected function _submitOrder() { $service = $this->_multishippingFactory->createQuoteService($this->getQuote(), true); // Using submitOrder instead of submitAll. submitAll is only necessary // when creating an order that may contain recurring profiles/nominal // items. As such orders can only be ordered separately, they should // never find their way into multishipping checkout. return $service->submitOrder(); }
/** * Submit the order, returning the created order object if successful. * * @return Mage_Sales_Model_Order|null */ protected function _submitOrder() { /** @var Mage_Sales_Model_Quote */ $quote = $this->getQuote(); Mage::dispatchEvent(static::MULTI_SHIPPING_ORDER_CREATE_EVENT, ['quote' => $quote]); $service = $this->_multishippingFactory->createQuoteService($quote, true); // Using submitOrder instead of submitAll. submitAll is only necessary // when creating an order that may contain recurring profiles/nominal // items. As such orders can only be ordered separately, they should // never find their way into multishipping checkout. return $service->submitOrder(); }