I've got some orders from M1, exported into a CSV that I need to add to Magento 2. There aren't too many so I don't mind doing it manually.

I've found that adding orders through the order section of the site will only create new orders and not let me add in historical orders. Is there any way to add them to the Database or another method? Thanks

1 Answer 1


I have created a module same as to import orders through csv. You can manually do by programatically order script.

  • Ah, would you be able to link to your module please?
    – Adam Shea
    Commented Jul 6, 2020 at 8:03
  • I will provide you my module in zip file. I have added code for all invoice, shipment, credit memo and orders. Hope it helps you
    – Sheba
    Commented Jul 6, 2020 at 18:12
  • You can download the order import module through this link: drive.google.com/file/d/1i4oTreuHTcuxaKAk7smNR_KqryYozKbK/… You have to create a file on root directory importOrders.php or whatever you want to give name to a file and add code below:
    – Sheba
    Commented Jul 7, 2020 at 5:52
  • Hi @Sheba, could you please share the csv file also?
    – Nayem323
    Commented Sep 11, 2022 at 12:50
  • @Nayem323 probably not assuming the csv is the data of real customers
    – John
    Commented Sep 23, 2022 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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