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 0b25aec + 6edaaf3 commit b0d4adaCopy full SHA for b0d4ada
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