0

Magento 2 I have quote data but order not created transaction completed all done but order not created.So I am trying to create order by using quote data.

Can we convert quote data to order by loading quote id.For all order it is paypal payment?

Can any one tell me better process.

0

Using \Magento\Quote\Api\CartManagementInterface you can call $order = $this->cartManagementInterface->submit($quote);, then you would probably need to manually up the LastRealOrderId by using the checkoutSession $this->checkoutSession ->setLastOrderId($order->getId()) ->setLastRealOrderId($order->getIncrementId());

Hope it helped!

|improve this answer|||||
  • Quote already submitted and it stored in to quote tables.I have that quote id can you please explain little bit more – Pawankumar Apr 9 '19 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.