Tue. Jul 2nd, 2024

19. Magento. How to export/import data in CSV files

2 min read


Untitled Document

 

By default, Magento allows to import/export products and customers only. In addition to it, we will show how to import/export your categories.

Import/export products

Let’s export our products.

  1. Log into your Magento administrator area.
  2. Go to System -> Import/Export -> Dataflow – Profiles -> Export All Products:how_to_export_import_data_in_csv_files_1
  3. Under Profile Wizard -> Store choose the desired store where you will be exporting the products.
  4. Under Data Transfer drop down menu choose Local/Remote Server.
  5. Under Data Format make sure CSV / Tab Separated is selected for type and click Save Profile:how_to_export_import_data_in_csv_files_2

  6. Open Run Profile tab and click Run Profile in Popup button:how_to_export_import_data_in_csv_files_3
  7. This will save a file named export_all_products.csv under the var/export/ directory of your Magento installation. The export success screen will look like the following and will specify the file name where the products were exported:

    how_to_export_import_data_in_csv_files_4

  8. Using an FTP client or CPanel File manager download this file to your local computer. You can edit it with a spreadsheet program (MS

    how_to_export_import_data_in_csv_files_5

    Excel, Open Office Spreadsheet) and add the products you would like to import:

Now we will show how to import the products.

  1. Go to the Magento administrator area and choose System -> Import/Export -> Dataflow – Profiles -> Import All Products.

    Select the required settings in Profile Wizard tab:

    how_to_export_import_data_in_csv_files_6

  2. Then choose Upload file tab and browse for the .csv file on your computer. Save changes:

    how_to_export_import_data_in_csv_files_7

  3. Once you have uploaded it, click Import All Products, then Run Profile, select the .csv file you have just uploaded from the drop down

    menu and click Run Profile in Popup:

    how_to_export_import_data_in_csv_files_8

  4. When import is completed, you will get an export success message. The similar way you can export and import your customers.

Import/export categories

Unfortunately, by default, Magento does not allow to import or export categories. We will use the free Mageworks extension to do such import/export. To install it, you need to download the zip file and upload its content to the root of your Magento on the server.

  1. To export the categories, navigate to Mageworks->Export profiles of your Magento dashboard.
  2. Click Categories and wait until the export is completed:

    how_to_export_import_data_in_csv_files_9

  3. The system generates categories.csv file into var/export/category/ directory on your server.
  4. To import categories, navigate to Mageworks->Import profiles and specify the file name located in var/import/category directory (categories.csv by default).
  5. Click Submit and wait until the categories import is completed:

    how_to_export_import_data_in_csv_files_10

That is the end of the tutorial. Now you know how to import/export data in CSV files in Magento.

 

July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031