Bulk product handling in Magento is an expertise of its own, independent of skill-sets relating to web design, programming or general data-entry. To be especially efficient at Magento product imports, knowing spreadsheet software, such as OpenOffice Calc or Microsoft Excel, would convenient the CVS creations, and knowing the basic product structure of the target Magento website will make the whole product import/editing process more efficient.
The below tutorials should cover information to expedite any bulk product editing and importing projects, broken down in the following topics:
Magento CSV & Tools
To take advantage of most tutorials explained in this article, you will require two things:
- Magmi: Magento Extension for Fast Imports
- In a previous post, we introduce a free tool for fast product imports in Magento, which you should download and setup. You can learn more about the extension and how to set it up here.
- Excel or OpenOffice.org's Calc
- To generate the CSV files, we require spreadsheet generating software that allow formulas/functions, such as Microsoft Excel or OpenOffice. Both work similarly, but although OpenOffice is more preferred, the examples below will be done via Excel, due to its more common use.
Magento Importing Basics
Both Magento's Dataflow and the Magmi Extension have the same behavior when it comes to importing. By default, these two tools will look for the importable CSV files in your
root/var/import folder, and the images in your
root/media/import folder (root being the folder of your Magento install). If those folders don't exist, you will have to create them in the specified path, or change where the tool you use should look for these files. This assumes that you have an FTP software, such as FileZilla, and have access to your target stores install folders.
Generating the Raw Product CSV and Columns
To generate the basic CSV file to use for imports in the target Magento store, you will want to do a product export from the admin of that store by doing the following:
- Login to your Magento Admin
- Go to the Dataflow Profiles via
Dataflow - Profiles, and choose Export All Products.
- In the Profile Wizard, just make sure All fields is selected in Export: under Data Format, which it should by default, then click on Run Profile and Run Profile in Popup.
- After the Profile executed, you should find your generated .CSV file in a folder of your Magento install, by default in
Once you have the exported spreadsheet open, copy the entire header row to a new Excel Spreadsheet. The spreadsheet will vary per Magento store, because it includes all the custom created attributes, but at the very least, the minimal product import/export values on Magento 1.7 are:
When importing via Magmi, many of the values can be disregarded and importing will work normally, but if you do intend to import via the Magento Defaflow method or do want custom values for the below columns, then you may want to add the following columns that I left out (although it may work without):
It is important to note that the order of these columns do not matter when importing via Dataflow or Magmi. Simply having the column headers is sufficient for it to be queued during import.
Importable Product CSV Sample Download
The below Product CSV sample is based on Magento 1.7, but may also work on earlier versions, starting at 1.4.