Commit fd7ac9a3 authored by Ketan's avatar Ketan

Merge branch 'develop' of http://silos.incaendo.com/hanumant/coconva2118 into develop

parents 346d7b2b 0af02764
......@@ -31,19 +31,22 @@ $_config = $this->helper('Sm\Shop4u\Helper\Data');
$subCats = $subCategory->getChildrenCategories();
$_helper = $this->helper('Magento\Catalog\Helper\Output');
?>
<?php if($catId == 206): ?>
<?php if(($catId == 206) || ($catId == 213)): ?>
<div class="category-product products wrapper grid products-grid">
<ol class="products list items product-items row">
<?php
foreach ($subCats as $subcat) {
$_category = $objectManager->create('Magento\Catalog\Model\Category')->load($subcat->getId());
$subcaturl = $subcat->getUrl();
$_imgHtml = '';
$_imgHtml = '';
if ($_imgUrl = $_category->getImageUrl()) {
$_imgHtml = '<img src="' . $_imgUrl . '" />';
$_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
} ?>
}else{
$defaultCategoryimg = $this->getViewFileUrl('Magento_Catalog::images/product/placeholder/thumbnail.jpg');
$_imgHtml = '<img src="' . $defaultCategoryimg . '" />';
$_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
}?>
<li class="item product product-item">
<div class="product-item-info" data-container="product-grid">
<div class="item-inner">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment