File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Block/Product/View Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,16 @@ public function getAdditionalData(array $excludeAttr = [])
81
81
$ attributes = $ product ->getAttributes ();
82
82
foreach ($ attributes as $ attribute ) {
83
83
if ($ attribute ->getIsVisibleOnFront () && !in_array ($ attribute ->getAttributeCode (), $ excludeAttr )) {
84
- $ value = $ attribute ->getFrontend ()->getValue ($ product );
85
-
84
+ if (is_array ($ value = $ attribute ->getFrontend ()->getValue ($ product ))) {
85
+ continue ;
86
+ }
86
87
if (!$ product ->hasData ($ attribute ->getAttributeCode ())) {
87
88
$ value = __ ('N/A ' );
88
89
} elseif ((string )$ value == '' ) {
89
90
$ value = __ ('No ' );
90
91
} elseif ($ attribute ->getFrontendInput () == 'price ' && is_string ($ value )) {
91
92
$ value = $ this ->priceCurrency ->convertAndFormat ($ value );
92
93
}
93
-
94
94
if ($ value instanceof Phrase || (is_string ($ value ) && strlen ($ value ))) {
95
95
$ data [$ attribute ->getAttributeCode ()] = [
96
96
'label ' => __ ($ attribute ->getStoreLabel ()),
You can’t perform that action at this time.
0 commit comments