From 828352628c82ec94f24e11b9a0fc861d60cccf96 Mon Sep 17 00:00:00 2001 From: punit-vaswani <punit-vaswani@nanomatrixsecure.com> Date: Wed, 10 Jan 2018 12:14:10 +0800 Subject: [PATCH] Fix for #11796 Magento2.2.0 home page product grid issues --- .../view/frontend/templates/product/widget/content/grid.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml b/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml index 201d6ffe4c6..6efff34fde7 100644 --- a/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml +++ b/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml @@ -35,7 +35,7 @@ <ol class="product-items <?= /* @noEscape */ $type ?>"> <?php $iterator = 1; ?> <?php foreach ($items as $_item): ?> - <?php if ($iterator++ != 1): ?></li><?php endif ?> + <?php $iterator++; ?> <li class="product-item"> <div class="product-item-info"> <a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo"> -- GitLab