Open kestraly opened 10 months ago
Alternative solution
/app/code/Meta/Catalog/Model/Product/Feed/Builder/AdditionalAttributes.php
public function getCorrectText(Product $product, string $attribute)
{
if ($product->getData($attribute)) {
$text = $product->getAttributeText($attribute);
if (!$text) {
$text = $product->getData($attribute);
}
if (is_array($text)) $text = implode(', ', $text);
return $text;
}
return false;
}
Pull request added https://github.com/magento/meta-for-magento2/pull/45
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Possible solution
if (is_array($attrValue)) $attrValue = implode(',', $attrValue);