Skip to content

Commit 770ec17

Browse files
authored
Update AbstractDataLayer.php
1 parent 8f2b45e commit 770ec17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Model/AbstractDataLayer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ protected function getProductAttributeValue(Product $product, ?string $attribute
220220
if (is_numeric($result) && 'sku' != $attributeCode) {
221221
$result = $product->getResource()->getAttribute($attributeCode)->getFrontend()->getValue($product);
222222
}
223+
224+
if (is_array($result)) {
225+
$result = implode(', ', $result);
226+
}
227+
223228
if ($result) {
224229
return (string)$result;
225230
}

0 commit comments

Comments
 (0)