Skip to content

Commit 44dfcac

Browse files
ENGCOM-5954: Fixed LayeredNavigation color filter show only loader for out of stock product #24728
- Merge Pull Request #24728 from ravi-chandra3197/magento2:out-of-stock-swatch-listing - Merged commits: 1. fd4f88d 2. 2cab120
2 parents 71b0142 + 2cab120 commit 44dfcac

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ $_helper = $this->helper(Magento\Catalog\Helper\Output::class);
7272
</strong>
7373
<?= $block->getReviewsSummaryHtml($_product, $templateType) ?>
7474
<?= /* @noEscape */ $block->getProductPrice($_product) ?>
75-
<?= $block->getProductDetailsHtml($_product) ?>
75+
<?php if ($_product->isAvailable()) :?>
76+
<?= $block->getProductDetailsHtml($_product) ?>
77+
<?php endif; ?>
7678

7779
<div class="product-item-inner">
7880
<div class="product actions product-item-actions"<?= strpos($pos, $viewMode . '-actions') ? $block->escapeHtmlAttr($position) : '' ?>>

0 commit comments

Comments
 (0)