Pay attention to each Wizard's page during import of categories to Zen Cart. Import is rather complicated procedure and it may be destructive if performed incorrectly. Create Database backup before importing categories especially if you do it first time.
To import categories to Zen Cart follow few steps:
First of all prepare a .csv file for Import. Make sure it contains all necessary fields and all data you are going to import is listed in the table.
If your vendor provides you product list in Excel, you can convert your Excel files to the CSV format within the Microsoft Excel or OpenOffice application by using the Save As option. You can then access the Save As dialog box which contains a list of alternative file formats. Among the file extensions offered, you can find Text CSV file format.
By saving your file into CSV format, Microsoft Excel or OpenOffice will export the first active worksheet with the correct delimiters.
2. Source file preview shows a part of .csv file selected to import. There are no options to set, but you should pay some attention to this page. What's so important to look for on this page is fields delimiter and quote character, if some is used.
If you carefully check the very first line of the example, you'll notice that some words enclosed in quotes (") and are separated by semicolon (;) symbol. That are two important options you have to pay attention to - you will have to setup these settings on the next page. Usually it is enough to see first line, no need to investigate entire file.
3. Select fields delimiter and quote character. If you specify wrong values, import may not work.
4. The next page allows you to Link columns from .csv file to appropriate database fields.
Specify the following options:
Note: It is recommended to use Category Name + Category Path to identify your categories. As new category IDs are generated automaticaly when you Import categories to Zen Cart for the first time (import ignores your Category IDs). If you used to Export data to .csv file for further import, you may use Category ID identification method, otherwise use Category Name + Category Path.
Database Fields contains such columns:
To assign .csv column to database field you should select a field at the left pane and then click a column at the right pane.
[Auto Fill...] button - try to set correspondence automatically for all fields. Auto fill option will work only if .csv column name is the same as database field name ("translated").
[Clear] button - clear all "csv col" values at the left pane
5. Base Formats and Separators are used to convert text values from .csv file to numerical and date values. You can just set default values using appropriate button.
Categories were not imported to your database yet.
6. On Preview Import page you can see how your .csv file was processed using all import settings. Check whether all columns that you want to be imported contains data as some of them may be blank, as you haven't assidned them or they are empty in source (.csv) file. Columns that were not assigned will not be imported whereas empty values will overwrite existing.
Red blinking arrow will be shown to draw your attention.
Check out all errors and fix them.
Attention! Import process will start, when you press "Import" Button! Proceed only if all settings are made, otherwise press "Back" Button and check settings once more!
7. In the last window of Zen Cart Import Categories Wizard you can see if any errors occurred during import.
Most frequent import errors are date, time and number conversion issues, caused by improper format settings (specified at previous page) or improperly assigned column (i.e. if you assign column containing category ID to parent_category database field). Date/time conversion errors might be ignored whereas other errors like this one (Could not find image: image_name.gif) better to be fixed.