Skip to content

Commit ef14435

Browse files
MAGETWO-53569: [Github] Import custom options type 'file' fails #4035
1 parent bcdf085 commit ef14435

File tree

1 file changed

+14
-0
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,20 @@ private function processOptionRow($name, $optionRow)
11371137
$result[$this->columnMaxCharacters] = $optionRow['max_characters'];
11381138
}
11391139

1140+
$result = $this->addFileOptions($result, $optionRow);
1141+
1142+
return $result;
1143+
}
1144+
1145+
/**
1146+
* Add file options
1147+
*
1148+
* @param array $result
1149+
* @param array $optionRow
1150+
* @return array
1151+
*/
1152+
private function addFileOptions($result, $optionRow)
1153+
{
11401154
foreach (['file_extension', 'image_size_x', 'image_size_y'] as $fileOptionKey) {
11411155
if (!isset($optionRow[$fileOptionKey])) {
11421156
continue;

0 commit comments

Comments
 (0)