Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit c9a7edd

Browse files
authored
Update the if part of the list.phtml
This should work if the variable is set And the variable is true or 1 or greater
1 parent ccaf54a commit c9a7edd

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
@@ -151,7 +151,7 @@ switch ($type = $block->getType()) {
151151
}
152152
?>
153153

154-
<?php if (isset($exist)):?>
154+
<?php if (isset($exist) && $exist):?>
155155

156156
<?php if ($type == 'related' || $type == 'upsell'): ?>
157157
<?php if ($type == 'related'): ?>

0 commit comments

Comments
 (0)