Skip to content

Commit 8f93677

Browse files
committed
MAGETWO-74042: [GITHUB] Configurable products import doesn't work configurable_variations not imported #5876
1 parent 9c7d5bc commit 8f93677

File tree

1 file changed

+5
-7
lines changed
  • app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type

1 file changed

+5
-7
lines changed

app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,11 @@ class Configurable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
204204
private $productEntityIdentifierField;
205205

206206
/**
207-
* Store specific columns list
207+
* Store view code column
208208
*
209-
* @var array
209+
* @var string
210210
*/
211-
private $storeSpecificColumns = [
212-
'store_view_code' => 'store_view_code'
213-
];
211+
private $storeViewCodeColumn = 'store_view_code';
214212

215213
/**
216214
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $attrSetColFac
@@ -498,12 +496,12 @@ protected function _parseVariations($rowData)
498496
$additionalRows = [];
499497
if (empty($rowData['configurable_variations'])) {
500498
return $additionalRows;
501-
} elseif(!empty($rowData[$this->storeSpecificColumns['store_view_code']])) {
499+
} elseif(!empty($this->storeViewCodeColumn)) {
502500
throw new LocalizedException(
503501
__(
504502
sprintf(
505503
'Product with assigned super attributes should not have specified "%s" value',
506-
$this->storeSpecificColumns['store_view_code']
504+
$this->storeViewCodeColumn
507505
)
508506
)
509507
);

0 commit comments

Comments
 (0)