4. Import Customers

This Wizard will help you to update your database by selecting an appropriate action. Pay attention to each page of the Wizard when you import customers to Zen Cart. Import is a rather complicated procedure and it may be destructive if performed incorrectly. Create Database backup before importing customers especially if you do it fro the first time.

To start Import Customers procedure you need to click on button, which starts the Import/Export Wizard. Customers Import/Export Wizard is similar to Categories Import/Export Wizard.

    1. First of all, prepare a .csv file for Import. Make sure it contains all the necessary fields and all the data you need.
    2. Select "Import" in the Import/Export Wizard and click "Next >" button to continue.

3. Enter the .csv file you need to import or use browse button to select one.

Also you can Save Import Settings for future import of customers or load one to use now.

Source file preview shows a part of .csv file selected for import. There are no options to set, but you should pay some attention to the following options: field delimiter and quote character, if some are used.

If you carefully check the very first line of the example, you'll notice that some of the 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 next page. Usually it is enough to see the first line, no need to investigate entire file.

4. Select fields delimiter and quote character.

The first option is delimiter character. Most popular delimiters are comma (,), semicolon (;) and tab character ( ), however other symbols can be used as well.

Note .csv file contains the data in row - column format and delimiter character are used to separate one column from another. If you specify incorrect delimiter, the file will not be parsed properly and the customers will not be imported.

5. The next page allows you to Link columns from .csv file to appropriate database fields.

The left pane "Database Fields" shows the list of fields in your database that can receive data after import.

The topmost option at this page is First row in .csv file contains field names but not values. Obviously it should be checked if the first row of .csv file contains data, otherwise uncheck this option.

The next option is Identify customers by. Import will search for a customer using selected method of identification. The customer will be modified if found, if not - new customer will be added.

Source .csv file can contain multiple records with identical Name values. All these products will be considered as one - currently imported product will overwrite previously imported with the same key field values. Note, that sometimes one of key fields may be blank. Obviously blank fields contain the same value for all records. It is required to assign .csv columns to key fields.

"Database Fields" show the list of fields in your database that can receive data after import.

Database Fields contains such columns:

      • Name - contains database field name. Some values in this column contain actual field name, whereas the other are "translated". Anyway these names are clear enough to figure out how to use them.
      • # - represents the number of the column in .csv file corresponding to this field - the link between database field and .csv column.
      • Set Null - indicates that this field should not contain any data, but should be set to Null. You can either specify column name or check this option, but not both of the actions at the same time.
      • Update - check if you want to update this field and uncheck if not.
      • Default - used to set some default value to a field, similar to Set Null, but in this case some value can be assigned to a field. Enter the value assigned to a field.

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 Set...] button - helps 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.

Click "Next" if you're done.

6. The next Customers Import Wizard page includes Base Formats and separators. They can be set by default.

Customers were not imported to your Zen Cart database yet. On Import Preview page you can see how .csv file was processed using import settings, which you specified at the previous steps. Check whether all the columns that you want to be imported are filled with data: some of them may be blank. That means that either you haven't assigned .csv column or it is empty in source (.csv) file. Columns that were not assigned will not be imported, whereas empty values will overwrite existing.

7. Enable the customer's "Continued" check-box if you want to add second/third Address Book to the customer.

Red blinking arrow will be shown to draw your attention if any errors occur.

8. Import options page is reserved for further import options.

Save Import Configuration

All import settings can be stored under some configuration. You can load it next time you decide to import customers to Zen Cart from a file with the similar formatting, column names etc.

Attention! Import process will start, when you press "Import" button! Proceed only if all the settings are made, otherwise press "Back" button and check settings once more!

9. In the last Import Customers Wizard page you can see if any errors occurred during import process.

Most frequent import errors are date, time and number conversion issues, caused by invalid format settings (specified at previous pages) 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) has to be fixed. Also you can see the list of parameters that were not found.

By eMagicOne Inc.