Skip to content

Commit aae97f3

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

File tree

1 file changed

+3
-12
lines changed
  • app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type

1 file changed

+3
-12
lines changed

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,6 @@ class Configurable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
203203
*/
204204
private $productEntityIdentifierField;
205205

206-
/**
207-
* Store view code column
208-
*
209-
* @var string
210-
*/
211-
private $storeViewCodeColumn = 'store_view_code';
212-
213206
/**
214207
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $attrSetColFac
215208
* @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $prodAttrColFac
@@ -496,13 +489,11 @@ protected function _parseVariations($rowData)
496489
$additionalRows = [];
497490
if (empty($rowData['configurable_variations'])) {
498491
return $additionalRows;
499-
} elseif(!empty($this->storeViewCodeColumn)) {
492+
} elseif(!empty($rowData['store_view_code'])) {
500493
throw new LocalizedException(
501494
__(
502-
sprintf(
503-
'Product with assigned super attributes should not have specified "%s" value',
504-
$this->storeViewCodeColumn
505-
)
495+
'Product with assigned super attributes should not have specified "%1" value',
496+
'store_view_code'
506497
)
507498
);
508499
}

0 commit comments

Comments
 (0)