Skip to content

Commit 8351b36

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-900 Description tab content looks mess-up while page loading on PDP
1 parent 28c1f28 commit 8351b36

File tree

1 file changed

+11
-2
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/view

1 file changed

+11
-2
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/view/details.phtml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
<div class="product info detailed">
1111
<?php $layout = $block->getLayout(); ?>
1212
<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):?>
1414
<?php
1515
$html = $layout->renderElement($name);
1616
if (!$html || !trim($html)) {
1717
continue;
1818
}
19+
$counter ++;
1920
$alias = $layout->getElementAlias($name);
2021
$label = $block->getChildData($alias, 'title');
2122
?>
@@ -37,4 +38,12 @@
3738
<?php endforeach;?>
3839
</div>
3940
</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+

0 commit comments

Comments
 (0)