A CSV file for importing color swatches must have the name swatches-yyyy-mm-dd.csv, where the part -yyyy-mm-dd can be any date you want, or can be omitted.
Below is a list of supported fields and their respective value types for the import of product attribute values:
Field in CSV file | What this field describes | |
name* | Swatch name (e.g. red, blue, etc.) | String |
position | Swatch position on the Color Swatches listing page (Catalog > Color swatches). May not be negative. A smaller number means a higher position on the list. | Integer |
color* | Swatch color value (a HEX presentation of the color) | String |
image | Swatch image location | String |
* Required field.
** See CSV Field Notices for more info.
Here is a sample file for importing color swatches:
To import color swatches using existing global or product class attributes, you will need to use the basic CSV file format described in CSV import: Classes & Attributes with the field swatches added to the file.
Below is a sample file for importing global attributes with color swatches:
To import color swatches using existing product-specific attributes, you will need to use the basic CSV file format described in CSV import: Product attribute values with the field swatch added to the file.
Below is a sample file for importing a product-specific attribute with a color swatch option:
Please note that the images of sample import files use a minimum of required fields and are used for demonstration purposes only.
Related pages: