|
Importing Product Extra Fields |
|
|
A list of extra fields of the catalog products can also be imported into the store database from a CSV file. The CSV file must be formatted in such a way that every line in the file would contain the definition of a single product extra field. Imported product extra fields are matched to catalog products by the combination of the 'product' (product name) and 'category' fields. To define a global extra field, specify empty product name in the 'product' field. Example Let's assume that we created an "ISBN" global extra field and assigned it to the "Books/Internet" and "Books/Software" categories. This is an example of a CSV file with the following exported fields: "name, SKU, category, product, value, default value, enabled, order by": "ISBN";"";"Books/Internet|Books/Software";"";"";"0123";"1";"0";"" "ISBN";"";"Books/Software";"Flash 5 for Windows and Macintosh";"0123";"0123";"1";"0";"" "ISBN";"";"Books/Internet";"HTML 4 for the World Wide Web";"0123";"0123";"1";"0";""
The first line contains data which describe the global extra field - as you can see there is no information about product name. Other lines contain data which describe non-global extra fields associated with particular products. Once the import engine has found the line which contains a name and a category and doesn't contain a product name, this line will be treated as a global extra field and the import engine will create the "ISBN" global extra field for "Books/Internet" and "Books/Software" categories. The next lines contain data for child extra fields and the import engine will create the "ISBN" extra field for particular products and associate those extra fields with the "ISBN" global extra field which was created before. To import the list of extra fields follow the instructions provided below:
![]() Figure 5-35: Importing product extra fields |