File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
app/code/Magento/Catalog/view/frontend/templates/product/view Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 10
10
<div class="product info detailed">
11
11
<?php $ layout = $ block ->getLayout (); ?>
12
12
<div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}'>
13
- <?php foreach ($ detailedInfoGroup as $ name ):?>
13
+ <?php $ counter = 0 ; foreach ($ detailedInfoGroup as $ name ):?>
14
14
<?php
15
15
$ html = $ layout ->renderElement ($ name );
16
16
if (!$ html || !trim ($ html )) {
17
17
continue ;
18
18
}
19
+ $ counter ++;
19
20
$ alias = $ layout ->getElementAlias ($ name );
20
21
$ label = $ block ->getChildData ($ alias , 'title ' );
21
22
?>
37
38
<?php endforeach ;?>
38
39
</div>
39
40
</div>
40
- <?php endif ; ?>
41
+ <?php if ($ counter > 1 ) : ?>
42
+ <script>
43
+ if ( document.getElementById("reviews") ) {
44
+ document.getElementById("reviews").style.display="none";
45
+ }
46
+ </script>
47
+ <?php endif ;
48
+ endif ; ?>
49
+
You can’t perform that action at this time.
0 commit comments