Skip to content

Commit 1f8bf28

Browse files
MAGETWO-91594: Unable to finish import when one product divided between import "bunches"
- Fix static test
1 parent 9174be3 commit 1f8bf28

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,8 @@ protected function _getMultiRowFormat($rowData)
11221122
}
11231123

11241124
/**
1125+
* Process option row.
1126+
*
11251127
* @param string $name
11261128
* @param array $optionRow
11271129
* @return array
@@ -1203,6 +1205,7 @@ private function addFileOptions($result, $optionRow)
12031205

12041206
/**
12051207
* Import data rows.
1208+
*
12061209
* Additional store view data (option titles) will be sought in store view specified import file rows
12071210
*
12081211
* @return boolean
@@ -1309,6 +1312,8 @@ protected function _importData()
13091312
}
13101313

13111314
/**
1315+
* Check options titles.
1316+
*
13121317
* If products were split up between bunches,
13131318
* this function will add needed option for option titles
13141319
*
@@ -1364,6 +1369,8 @@ private function setLastOptionTitle(array &$titles) : void
13641369
}
13651370

13661371
/**
1372+
* Remove existing options.
1373+
*
13671374
* Remove all existing options if import behaviour is APPEND
13681375
* in other case remove options for products with empty "custom_options" row only.
13691376
*
@@ -1617,6 +1624,8 @@ private function getExistingOptionTypeId($optionId, $storeId, $optionTypeTitle)
16171624
}
16181625

16191626
/**
1627+
* Rarse required data.
1628+
*
16201629
* Parse required data from current row and store to class internal variables some data
16211630
* for underlying dependent rows
16221631
*

0 commit comments

Comments
 (0)