Skip to content

Commit a4db06a

Browse files
author
Volodymyr Klymenko
committed
MAGETWO-52653: Simple Product is shown as "Out of stock" on category grid when catalog permissions applied
1 parent 2eaa8b5 commit a4db06a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
8989
</button>
9090
</form>
9191
<?php else: ?>
92-
<?php if ($_product->getIsSalable()): ?>
92+
<?php if ($_product->isAvailable()): ?>
9393
<div class="stock available"><span><?php /* @escapeNotVerified */ echo __('In stock') ?></span></div>
9494
<?php else: ?>
9595
<div class="stock unavailable"><span><?php /* @escapeNotVerified */ echo __('Out of stock') ?></span></div>

0 commit comments

Comments
 (0)