Skip to content

Commit c3f315e

Browse files
committed
Added option to select replica type per attribute
1 parent fb8fd29 commit c3f315e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ protected function addAdditionalAttributes($customData, $additionalAttributes, P
10591059
}
10601060

10611061
$type = $product->getTypeId();
1062-
if ($type !== 'configurable' && $type !== 'grouped' && $type !== 'bundle' && $attributeName != 'test') {
1062+
if ($type !== 'configurable' && $type !== 'grouped' && $type !== 'bundle') {
10631063
continue;
10641064
}
10651065

@@ -1222,7 +1222,7 @@ protected function addNonNullValue(
12221222
$value = $attributeResource->getFrontend()->getValue($product);
12231223
}
12241224

1225-
if ($value !== null) {
1225+
if ($value) {
12261226
$customData[$attribute['attribute']] = $value;
12271227
}
12281228

0 commit comments

Comments
 (0)