General Questions

How to export files from Drupal Commerce?

To export products and categories from Drupal Commerce for your data migration, you'll need to activate the free Views data export plugin. Beforehand, ensure you've installed the free Views and Ctools modules to guarantee the Views data export plugin functions correctly.

Alternatively, you can follow the instructions below or watch this video guide.

Once all three modules are downloaded, installed, and activated, follow these steps separately to export your Drupal Commerce products and categories:

1. Log in to your Drupal Commerce admin panel, navigate to Structure-> Views, and click Add new view.

Add new view in Drupal Commerce for data export

Drupal Commerce Structure Views for data export

2. Fill in the View name field. Use "export_product" for products and "export_category" for categories as examples.

3. From the “Show” dropdown menu, select Commerce Products (for products) or Taxonomy Terms (for categories). In the “of type” dropdown, choose All.

4. Click Continue and Edit.

Continue and Edit Drupal Commerce data export

5. In the Fields section, click Add and check the boxes next to:

Adding fields for Drupal Commerce data export

- For products: “Commerce Product: Product ID”, “Commerce Product: SKU”, “Commerce Product: Status”, and “Commerce Product: Title”.

Commerce Product fields for Drupal Commerce data export

- For categories: “Taxonomy term: Name”, “Taxonomy term: Term description”, and “Taxonomy term: Term ID”.

Taxonomy term fields for Drupal Commerce data export

6. Click Apply (All Displays) repeatedly until all necessary fields are configured.

Apply all displays for Drupal Commerce data export

7. Click Save.

Save Drupal Commerce data export settings

8. Under the Displays heading, click Add, then select Data Export.

Add data export display in Drupal Commerce

9. In the Format field, choose CSV file. Within its settings, select Provide as a file and apply the changes.

Provide as a file for Drupal Commerce data export

10. Go to Data Export Settings. In the Path field, enter "export-product" (for products) or "export-categories" (for categories). Choose Page in the Attach to field, and then click Apply.

Data export settings for Drupal Commerce

11. Open the Display a specified number of entities menu, choose Display all items, and click Apply.

Display all items for Drupal Commerce data export

12. Finally, save the changes and click view Data export.

Final Drupal Commerce data export view

Once you've completed these steps, upload the generated CSV files to the appropriate fields in the Migration Wizard to begin your data migration.


Do you need help? Contact our support team

Just set up the migration and choose the entities to move – the service will do the rest.

Try It Free

Delegate the job to the highly-skilled migration experts and get the job done.

Choose Package