File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Catalog/Block/Product/View Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
namespace Magento \Catalog \Block \Product \View ;
13
13
14
14
use Magento \Catalog \Model \Product ;
15
+ use Magento \Framework \Phrase ;
15
16
use Magento \Framework \Pricing \PriceCurrencyInterface ;
16
17
17
18
class Attributes extends \Magento \Framework \View \Element \Template
@@ -85,8 +86,8 @@ public function getAdditionalData(array $excludeAttr = [])
85
86
} elseif ($ attribute ->getFrontendInput () == 'price ' && is_string ($ value )) {
86
87
$ value = $ this ->priceCurrency ->convertAndFormat ($ value );
87
88
}
88
-
89
- if (is_string ($ value ) && strlen ($ value )) {
89
+
90
+ if ($ value instanceof Phrase || ( is_string ($ value ) && strlen ($ value) )) {
90
91
$ data [$ attribute ->getAttributeCode ()] = [
91
92
'label ' => __ ($ attribute ->getStoreLabel ()),
92
93
'value ' => $ value ,
You can’t perform that action at this time.
0 commit comments