@@ -502,7 +502,7 @@ protected function getMediaGallery(array $productIds)
502
502
'_media_image ' => $ mediaRow ['filename ' ],
503
503
'_media_label ' => $ mediaRow ['label ' ],
504
504
'_media_position ' => $ mediaRow ['position ' ],
505
- '_media_is_disabled ' => $ mediaRow ['disabled ' ],
505
+ '_media_is_disabled ' => $ mediaRow ['disabled ' ]
506
506
];
507
507
}
508
508
@@ -677,7 +677,7 @@ protected function setHeaderColumns($customOptionsData, $stockItemRows)
677
677
'crosssell_skus ' ,
678
678
'upsell_skus ' ,
679
679
],
680
- ['additional_images ' , 'additional_image_labels ' ]
680
+ ['additional_images ' , 'additional_image_labels ' , ' hide_from_product_page ' ]
681
681
);
682
682
// have we merge custom options columns
683
683
if ($ customOptionsData ) {
@@ -1039,14 +1039,21 @@ protected function addMultirowData($dataRow, $multiRawData)
1039
1039
if (!empty ($ multiRawData ['mediaGalery ' ][$ productId ])) {
1040
1040
$ additionalImages = [];
1041
1041
$ additionalImageLabels = [];
1042
+ $ additionalImageIsDisabled = [];
1042
1043
foreach ($ multiRawData ['mediaGalery ' ][$ productId ] as $ mediaItem ) {
1043
1044
$ additionalImages [] = $ mediaItem ['_media_image ' ];
1044
1045
$ additionalImageLabels [] = $ mediaItem ['_media_label ' ];
1046
+
1047
+ if ($ mediaItem ['_media_is_disabled ' ] == true ) {
1048
+ $ additionalImageIsDisabled [] = $ mediaItem ['_media_image ' ];
1049
+ }
1045
1050
}
1046
1051
$ dataRow ['additional_images ' ] =
1047
1052
implode (ImportProduct::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR , $ additionalImages );
1048
1053
$ dataRow ['additional_image_labels ' ] =
1049
1054
implode (ImportProduct::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR , $ additionalImageLabels );
1055
+ $ dataRow ['hide_from_product_page ' ] =
1056
+ implode (ImportProduct::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR , $ additionalImageIsDisabled );
1050
1057
$ multiRawData ['mediaGalery ' ][$ productId ] = [];
1051
1058
}
1052
1059
foreach ($ this ->_linkTypeProvider ->getLinkTypes () as $ linkTypeName => $ linkId ) {
0 commit comments