4. Import Categories
Pay attention to each Wizard's step when you import categories to Pinnacle 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.
- 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 table.
- Select "Import" in the Categories Import/Export Wizard and click "Next >" button to continue.
- Enter the .csv file directive and name or use browse button to select one.
- 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.
- Select fields delimiter and quote character page contains some important settings. If you specify wrong values, categories import to Pinnacle Cart may not work.
- 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 data in row-column format and delimiter character is used to separate one column from another. If you specify incorrect delimiter, file will not be parsed properly and categories will not be imported.
- Quote string values delimiter will be used to separate strings in .csv file. This delimiter can be disabled if none are used.
- On previous sample page we have noticed that semicolon symbol was used as delimiter and values were quoted with " symbol. Specify those settings as shown above.
- Third setting is category delimiter. This is not native .csv setting, it is used only in Store Manager. As you know categories are organized in a form of tree, where parent category can contain one or more subcategories, and subcategory can contain one or more other categories. Category delimiter character is used to separate category names and specify full category tree path for given category. Category path is very similar to directory path used to specify full file name in Windows, where every directory separated by backslash (\) character like this one C:\Program Files\eMagicOne\Store Manager for Pinnacle Cart\.
- As for example category path for "Sample Subcategory" (see image below) will be Hardware|Graphics Cards|Sample Subcategory. Pipe (|) character was used as separator.
- Base Formats and Separators parameters are used to convert text values from .csv file to numerical and date values. You can just set default formats with appropriate button.
- 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 import data.
- The topmost option on this page is first row in .csv file contains field names but not values. Obviously it should be unchecked if first row of .csv file contains data, otherwise check this option.
- Next option is Category Identification Method. Import will search for a category using selected method of identification. The category will be modified if found, if not - new category will be added.
- Source .csv file can contain multiple records with identical Name values. All these categories will be considered as one - currently imported categories to Pinnacle Cart 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 contains such columns:
- Rec ID - contains database field ID.
- Name - contains database field name. Some values in this column contain actual field name, whereas other are "translated". Anyway these names are clear enough to figure out how to use them.
- csv col # - 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 them at the same time.
- Set default - used to set some default value to the field, similar to Set Null, but in this case some value can be assigned to the field.
- Default value - 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 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
- Click "Next" if you're done.
- Categories were not imported to your Pinnacle Cart database yet.
- On Import Preview page you can see how .csv file was processed using import settings, which you specified. Check whether all columns that you want to be imported are filled with data: some of them may be blank, and have you 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.
- Also you can select categories to import using custom filters - see column heading drop-downs. Only those categories that are displayed (filtered) will be imported.
- 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!
- In the last window of Import Categories Wizard you can see if any errors occurred during import process.
Now Pinnacle Cart categories import procedure is finished.