@@ -41,16 +41,11 @@ class Configurable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
41
41
* @var array
42
42
*/
43
43
protected $ _messageTemplates = [
44
- self ::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER =>
45
- 'Attribute with code "%s" is not super ' ,
46
- self ::ERROR_INVALID_OPTION_VALUE =>
47
- 'Invalid option value for attribute "%s" ' ,
48
- self ::ERROR_INVALID_WEBSITE =>
49
- 'Invalid website code for super attribute ' ,
50
- self ::ERROR_DUPLICATED_VARIATIONS =>
51
- 'SKU %s contains duplicated variations ' ,
52
- self ::ERROR_UNIDENTIFIABLE_VARIATION =>
53
- 'Configurable variation "%s" is unidentifiable ' ,
44
+ self ::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER => 'Attribute with code "%s" is not super ' ,
45
+ self ::ERROR_INVALID_OPTION_VALUE => 'Invalid option value for attribute "%s" ' ,
46
+ self ::ERROR_INVALID_WEBSITE => 'Invalid website code for super attribute ' ,
47
+ self ::ERROR_DUPLICATED_VARIATIONS => 'SKU %s contains duplicated variations ' ,
48
+ self ::ERROR_UNIDENTIFIABLE_VARIATION => 'Configurable variation "%s" is unidentifiable ' ,
54
49
];
55
50
56
51
/**
@@ -521,11 +516,10 @@ protected function _parseVariations($rowData)
521
516
$ position += 1 ;
522
517
}
523
518
} else {
524
- $ errorCode = self ::ERROR_UNIDENTIFIABLE_VARIATION ;
525
519
throw new LocalizedException (
526
520
__ (
527
521
sprintf (
528
- $ this ->_messageTemplates [$ errorCode ],
522
+ $ this ->_messageTemplates [self :: ERROR_UNIDENTIFIABLE_VARIATION ],
529
523
$ variation
530
524
)
531
525
)
0 commit comments