File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
app/code/Magento/CatalogImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -712,6 +712,21 @@ public function _getHeaderColumns()
712
712
return $ this ->_customHeadersMapping ($ this ->rowCustomizer ->addHeaderColumns ($ this ->_headerColumns ));
713
713
}
714
714
715
+ /**
716
+ * Return non-system attributes
717
+
718
+ * @return array
719
+ */
720
+ private function getNonSystemAttributes ()
721
+ {
722
+ $ attrKeys = [];
723
+ foreach ($ this ->filterAttributeCollection ($ this ->getAttributeCollection ()) as $ attribute ) {
724
+ $ attrKeys []= $ attribute ->getAttributeCode ();
725
+ }
726
+
727
+ return array_diff ($ this ->_getExportMainAttrCodes (), $ this ->_customHeadersMapping ($ attrKeys ));
728
+ }
729
+
715
730
/**
716
731
* Set headers columns
717
732
*
@@ -729,7 +744,10 @@ protected function setHeaderColumns($customOptionsData, $stockItemRows)
729
744
) ?
730
745
array_intersect (
731
746
$ this ->_getExportMainAttrCodes (),
732
- $ this ->_customHeadersMapping ($ this ->_getExportAttrCodes ())
747
+ array_merge (
748
+ $ this ->_customHeadersMapping ($ this ->_getExportAttrCodes ()),
749
+ $ this ->getNonSystemAttributes ()
750
+ )
733
751
) :
734
752
$ this ->_getExportMainAttrCodes ();
735
753
You can’t perform that action at this time.
0 commit comments