Skip to content

Commit 1bdd266

Browse files
MC-40873: Product is shown as Out of Stock on CMS page when Category Permissions are enabled
1 parent d3f202a commit 1bdd266

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/widget/new/content

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/widget/new/content/new_grid.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
8989
</button>
9090
<?php endif; ?>
9191
<?php else :?>
92-
<?php if ($_item->getIsSalable()) :?>
92+
<?php if ($_item->isAvailable()) :?>
9393
<div class="stock available">
9494
<span><?= $block->escapeHtml(__('In stock')) ?></span>
9595
</div>

0 commit comments

Comments
 (0)