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

Commit 1a407e6

Browse files
committed
Fix for #11796 Magento2.2.0 home page product grid issues (li tag)
1 parent 8283526 commit 1a407e6

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content

1 file changed

+1
-2
lines changed

app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
<ol class="product-items <?= /* @noEscape */ $type ?>">
3636
<?php $iterator = 1; ?>
3737
<?php foreach ($items as $_item): ?>
38-
<?php $iterator++; ?>
39-
<li class="product-item">
38+
<?= ($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
4039
<div class="product-item-info">
4140
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo">
4241
<?= $block->getImage($_item, $image)->toHtml() ?>

0 commit comments

Comments
 (0)