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 75ce486 + 5c0f44a commit 274eb8cCopy full SHA for 274eb8c
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