diff --git a/app/code/Magento/Catalog/Block/Product/View/Attributes.php b/app/code/Magento/Catalog/Block/Product/View/Attributes.php index fbdda684343b5..32c1c1b6d7a61 100644 --- a/app/code/Magento/Catalog/Block/Product/View/Attributes.php +++ b/app/code/Magento/Catalog/Block/Product/View/Attributes.php @@ -81,8 +81,9 @@ public function getAdditionalData(array $excludeAttr = []) $attributes = $product->getAttributes(); foreach ($attributes as $attribute) { if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) { - $value = $attribute->getFrontend()->getValue($product); - + if (is_array($value = $attribute->getFrontend()->getValue($product))) { + continue; + } if (!$product->hasData($attribute->getAttributeCode())) { $value = __('N/A'); } elseif ((string)$value == '') { @@ -90,7 +91,6 @@ public function getAdditionalData(array $excludeAttr = []) } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) { $value = $this->priceCurrency->convertAndFormat($value); } - if ($value instanceof Phrase || (is_string($value) && strlen($value))) { $data[$attribute->getAttributeCode()] = [ 'label' => __($attribute->getStoreLabel()),