Importing CSV
Posted: 28 Nov 2015, 05:32
I'm trying to import some products via csv. I am running up against an error and I cannot figure out the issue. Maybe someone can spot what I'm doing wrong?
My mapping (not all of it but the relevant parts....I think) :
My csv file:
Whenever I run the import, I get the following error:
What am I overlooking?
My mapping (not all of it but the relevant parts....I think) :
Code: Select all
'mapping' => array(
'item' => array(
0 => 'product.code',
1 => 'product.label',
2 => 'product.type',
3 => 'product.status',
),
'text' => array(
4 => 'text.type',
5 => 'text.content',
6 => 'text.type',
7 => 'text.content',
),
'media' => array(
8 => 'media.url',
9 => 'media.preview',
),
'price' => array(
10 => 'price.value',
),
'property' => array(
11 => 'product.property.type',
12 => 'product.property.value',
),
'catalog' => array(
13 => 'catalog.code',
14 => 'catalog.code',
15 => 'catalog.code',
),
'attribute' => array(
16 => 'attribute.type',
17 => 'attribute.code',
18 => 'attribute.type',
19 => 'attribute.code',
20 => 'attribute.type',
Code: Select all
"product1","Product 1 Label","default","1","short","Product 1 Short Desc","long","Product 1 Long Desc","prod1.png","prod1-sm.jpg","1.95","package-weight","0.5","home","category1","subcategory1",,"color","color-orange","color","color-green","color","color-yellow","color","color-brown","season","season-fall","event","holiday-thanksgiving","month","month-nov","style","style-cute",,
Code: Select all
Undefined index: attribute.code