Skip to content

Commit 0f796cc

Browse files
Fixed: Undefined index: store_view_code.
1 parent 99f206f commit 0f796cc

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product

1 file changed

+5
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Option.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,11 @@ protected function _parseCustomOptions($rowData)
20862086
}
20872087
}
20882088
}
2089-
$options[$name][$k]['_custom_option_store'] = $rowData[Product::COL_STORE_VIEW_CODE];
2089+
if (isset($rowData[Product::COL_STORE_VIEW_CODE])) {
2090+
$options[$name][$k][self::COLUMN_STORE] = $rowData[Product::COL_STORE_VIEW_CODE];
2091+
} else {
2092+
$options[$name][$k][self::COLUMN_STORE] = Store::DEFAULT_STORE_ID;
2093+
}
20902094
$k++;
20912095
}
20922096
$rowData['custom_options'] = $options;

0 commit comments

Comments
 (0)