We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6599d2 + 3748d4e commit 4b937e3Copy full SHA for 4b937e3
app/code/Magento/Catalog/Block/Product/View/Attributes.php
@@ -16,6 +16,8 @@
16
use Magento\Framework\Pricing\PriceCurrencyInterface;
17
18
/**
19
+ * Attributes attributes block
20
+ *
21
* @api
22
* @since 100.0.2
23
*/
@@ -56,6 +58,8 @@ public function __construct(
56
58
}
57
59
60
61
+ * Returns a Product
62
63
* @return Product
64
65
public function getProduct()
@@ -88,7 +92,7 @@ public function getAdditionalData(array $excludeAttr = [])
88
92
$value = $this->priceCurrency->convertAndFormat($value);
89
93
90
94
91
- if (is_string($value) && strlen($value)) {
95
+ if (is_string($value) && strlen(trim($value))) {
96
$data[$attribute->getAttributeCode()] = [
97
'label' => __($attribute->getStoreLabel()),
98
'value' => $value,
0 commit comments