Answers.Body: <p><a href="https://sprout.barrelstrengthdesign.com/craft-plugins/import" rel="nofollow noreferrer">Sprout Import</a> supports importing Craft Commerce Orders on Craft 3.</p>
  
  <p>I can't speak to which fields are required off of the top of my head but importing to custom fields, variants, and even custom fields like Matrix on Variant Layouts is possible. Any required fields you don't include will throw an error and tell you they are needed.</p>
  
  <p>An example of the Orders import format is available in the <a href="https://sprout.barrelstrengthdesign.com/docs/import/orders.html" rel="nofollow noreferrer">Element Importer docs</a>.</p>
  
  <p>Sprout Import uses a specific JSON format to perform imports so you will need to convert your CSV export into the appropriate JSON format to import if you choose to go this route.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-07T11:46:38.697Z
Answers.Text: Thanks a lot Ben, Sprout Import looks good. I do get a failure using the example import from the Documents, though. Seems like orderLangauage is missing in your example:
  
  ```2018-09-07 13:43:49 [-][-][-][error][sprout-import] Unable to run Sprout Import job.
  2018-09-07 13:43:49 [-][-][-][error][sprout-import] SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'orderLanguage' cannot be null```
Answers.UserDisplayName: HendrikEng
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-07T11:48:56.343Z
Answers.Text: I added orderLanguage to the Json but it still fails with:
  ```2018-09-07 13:47:34 [-][-][-][info][yii\db\Command::execute] UPDATE `queue` SET `fail`=1, `dateFailed`='2018-09-07 11:47:34', `error`='SQLSTATE[23000]: Integrity constraint violation: 1048 Column \'orderLanguage\'```
Answers.UserDisplayName: HendrikEng
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-07T14:36:14.373Z
Answers.Text: Can you open a ticket for any issues you run into (https://github.com/barrelstrength/craft-sprout-import/issues)? Craft Commerce is still in beta and our examples have to be general as often specific import situations require different IDs depending on how you have things setup, but these specific implementation questions get away from the original question here.
Answers.UserDisplayName: Ben Parizek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-05T13:14:14.003Z
Answers.LastActivityDate: 2018-09-05T13:14:14.003Z
Answers.UserDisplayName: Ben Parizek
Body: <p>We have to migrate a CSV dump from a Drupal commerce shop to Craft Commerce.</p>
  
  <p>It is important to import ‘Order Email’ / ‘Username’, ‘Order Date’, ‘Ordered Items’ (Name or ID), ‘Item Price’.
  Address etc. are not relevant. An Order Reference could be generated automatically from us.</p>
  
  <p>If these are not enough fields for a Craft Commerce order: Which mandatory fields does an order require in Commerce?</p>
  
  <p>Anyone know if there is a way to do this? We would of course love to do it with the FeedMe plugin, but that does not seem to be applicable to Craft Commerce orders.</p>
  
Tags: <migration><import><plugin-craftcommerce2>
Title: Is it possible to import orders into Craft Commerce?
ThreadText: # Is it possible to import orders into Craft Commerce?
  
  (Asked by: username_0 on 2018-09-05)
  
  We have to migrate a CSV dump from a Drupal commerce shop to Craft Commerce.
  
  It is important to import ‘Order Email’ / ‘Username’, ‘Order Date’, ‘Ordered Items’ (Name or ID), ‘Item Price’.
  Address etc. are not relevant. An Order Reference could be generated automatically from us.
  
  If these are not enough fields for a Craft Commerce order: Which mandatory fields does an order require in Commerce?
  
  Anyone know if there is a way to do this? We would of course love to do it with the FeedMe plugin, but that does not seem to be applicable to Craft Commerce orders.
  
  **Tags:** migration, import, plugin-craftcommerce2
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-09-05. Score: 4 | Accepted answer
  
  [Sprout Import](https://sprout.barrelstrengthdesign.com/craft-plugins/import) supports importing Craft Commerce Orders on Craft 3.
  
  I can't speak to which fields are required off of the top of my head but importing to custom fields, variants, and even custom fields like Matrix on Variant Layouts is possible. Any required fields you don't include will throw an error and tell you they are needed.
  
  An example of the Orders import format is available in the [Element Importer docs](https://sprout.barrelstrengthdesign.com/docs/import/orders.html).
  
  Sprout Import uses a specific JSON format to perform imports so you will need to convert your CSV export into the appropriate JSON format to import if you choose to go this route.
  
  > **Comments:**
  > **username_0**: Thanks a lot Ben, Sprout Import looks good. I do get a failure using the example import from the Documents, though. Seems like orderLangauage is missing in your example:  ```2018-09-07 13:43:49 [-][-][-][error][sprout-import] Unable to run Sprout Import job. 2018-09-07 13:43:49 [-][-][-][error][sprout-import] SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'orderLanguage' cannot be null```  
  > **username_0**: I added orderLanguage to the Json but it still fails with: ```2018-09-07 13:47:34 [-][-][-][info][yii\db\Command::execute] UPDATE `queue` SET `fail`=1, `dateFailed`='2018-09-07 11:47:34', `error`='SQLSTATE[23000]: Integrity constraint violation: 1048 Column \'orderLanguage\'```  
  > **username_1**: Can you open a ticket for any issues you run into (https://github.com/barrelstrength/craft-sprout-import/issues)? Craft Commerce is still in beta and our examples have to be general as often specific import situations require different IDs depending on how you have things setup, but these specific implementation questions get away from the original question here.  
  
  ---
  
  