Commit ad46191 1 parent 9654c3c commit ad46191 Copy full SHA for ad46191
File tree 2 files changed +7
-5
lines changed
CatalogStorefrontConnector/Model/Publisher
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -276,10 +276,12 @@ public function ImportCategories(ImportCategoriesRequestInterface $request): Imp
276
276
$ categoryInElasticFormat ['is_anchor ' ] = $ categoryInElasticFormat ['is_anchor ' ] ? '1 ' : '0 ' ;
277
277
$ categoryInElasticFormat ['include_in_menu ' ] = $ categoryInElasticFormat ['include_in_menu ' ] ? '1 ' : '0 ' ;
278
278
$ categoryInElasticFormat ['store_id ' ] = (int )$ categoryInElasticFormat ['store_id ' ];
279
- $ categoryInElasticFormat ['url_path ' ] = !empty ($ categoryInElasticFormat ['url_path ' ]) ?? null ;
280
- $ categoryInElasticFormat ['image ' ] = !empty ($ categoryInElasticFormat ['image ' ]) ?? null ;
281
- $ categoryInElasticFormat ['description ' ] = !empty ($ categoryInElasticFormat ['description ' ]) ?? null ;
282
- $ categoryInElasticFormat ['canonical_url ' ] = !empty ($ categoryInElasticFormat ['canonical_url ' ]) ?? null ;
279
+
280
+ $ categoryInElasticFormat ['url_path ' ] = !empty ($ categoryInElasticFormat ['url_path ' ]) ? $ categoryInElasticFormat ['url_path ' ] : null ;
281
+ $ categoryInElasticFormat ['image ' ] = !empty ($ categoryInElasticFormat ['image ' ]) ? $ categoryInElasticFormat ['image ' ] : null ;
282
+ $ categoryInElasticFormat ['description ' ] = !empty ($ categoryInElasticFormat ['description ' ]) ? $ categoryInElasticFormat ['description ' ] : null ;
283
+ $ categoryInElasticFormat ['canonical_url ' ] = !empty ($ categoryInElasticFormat ['canonical_url ' ]) ? $ categoryInElasticFormat ['canonical_url ' ] : null ;
284
+
283
285
$ categoryInElasticFormat ['product_count ' ] = (string )$ categoryInElasticFormat ['product_count ' ];
284
286
$ categoryInElasticFormat ['children_count ' ] = (string )$ categoryInElasticFormat ['children_count ' ];
285
287
$ categoryInElasticFormat ['level ' ] = (string )$ categoryInElasticFormat ['level ' ];
Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ private function temporaryProductTransformation(array &$product): void
167
167
$ unnecessaryAttributeNames = [
168
168
'entity_id ' ,
169
169
'row_id ' ,
170
- 'categories ' ,
171
170
'store_id ' ,
172
171
'swatch_image '
173
172
];
@@ -195,6 +194,7 @@ private function temporaryProductTransformation(array &$product): void
195
194
'small_image ' ,
196
195
'thumbnail ' ,
197
196
'dynamic_attributes ' ,
197
+ 'categories ' ,
198
198
199
199
// TODO: Questionable attributes below, needed to preserve backward compatibility with current Catalog SF branch during refactoring
200
200
'required_options ' ,
You can’t perform that action at this time.
0 commit comments