We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f047d7d + 6edaaf3 commit 5c0f44aCopy full SHA for 5c0f44a
app/code/Magento/Catalog/view/frontend/templates/product/list/items.phtml
@@ -110,7 +110,7 @@ switch ($type = $block->getType()) {
110
111
case 'crosssell':
112
/** @var \Magento\Catalog\Block\Product\ProductList\Crosssell $block */
113
- if ($exist = $block->getItemCount()) {
+ if ($exist = count($block->getItems())) {
114
$type = 'crosssell';
115
$class = $type;
116
0 commit comments