Skip to content

Commit 5c0f44a

Browse files
committed
MAGETWO-64999: [GitHub][PR] Fixed crosssells count always null #8602
- Merge Pull Request #8602 from koenner01/magento2:fix-#7353
2 parents f047d7d + 6edaaf3 commit 5c0f44a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ switch ($type = $block->getType()) {
110110

111111
case 'crosssell':
112112
/** @var \Magento\Catalog\Block\Product\ProductList\Crosssell $block */
113-
if ($exist = $block->getItemCount()) {
113+
if ($exist = count($block->getItems())) {
114114
$type = 'crosssell';
115115
$class = $type;
116116

0 commit comments

Comments
 (0)