Exporting Product Types
How to export Product Types from the commercetools platform with the ImpEx tool?
This tutorial shows, how to export with the ImpEx tool Product Types from a commercetools project to a comma separated (CSV) file to be
- imported into another project again, for example from staging project to production project or
- to be used with other tools of your choice, like a spreadsheet editor, etc.
If you have product types already defined in your commercetools project you can export them as explained in the following section Export all Product Types.
If not you can create some product types as explained step-by-step in a dedicated tutorial.
Let's consider an example commercetools project (Test_Project), where we have defined the ProductType with some attributes.
The product types are exported on hitting the
As a result of successful export, we can download the CSV files from the output.
The output also gives the overview of the number of exported product types and its attributes.
On downloading the zip file and unzipping it, we get two CSV files.
- products-to-attributes.csv - All the product types and their corresponding attributes are given in this CSV file.
- attributes.csv - The attribute definition of all the attributes regardless of the product type are given in this CSV file.
Following are the CSV files from the example project.
The above image shows, the products-to-attributes.csv, which has product types Product_Type_1 with its attributes
Size and Product_Type_2 with its attributes
The given image above shows the attributes.csv file containing all the attributes and its definitions as given here.
You are now able to import these files into another commercetools project with the corresponding Product Type import Tool.