Tags » Category

Magento 2: How to Get Subcategories of Specific Parent Category


<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$catId = 2; // Parent Category ID
$subcategory = $objectManager->create('Magento\Catalog\Model\Category')->load($catId);
$subcats = $subcategory->getChildrenCategories();
$_helper = $this->helper('Magento\Catalog\Helper\Output');
?>
<ul class="sub-cat">
<?php
foreach ($subcats as $subcat) {
$_category = $objectManager->create('Magento\Catalog\Model\Category')->load($subcat->getId());
$_outputhelper = $this->helper('Magento\Catalog\Helper\Output');
$subcaturl = $subcat->getUrl();
$_imgHtml = '';
if ($_imgUrl = $_category->getImageUrl()) {
$_imgHtml = '<img src="' . 92 more words
Magento

Magento 2: How to Get sub category of current category in Magento2


< ?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->get('Magento\Framework\Registry')->registry('current_category'); //Get Current Category
$subcats = $category->getChildrenCategories();
$_helper = $this->helper('Magento\Catalog\Helper\Output');
?>
<ul class="sub-cat">
< ?php
foreach ($subcats as $subcat) {
$_category = $objectManager->create('Magento\Catalog\Model\Category')->load($subcat->getId());
$_outputhelper = $this->helper('Magento\Catalog\Helper\Output');
$subcaturl = $subcat->getUrl();
$_imgHtml = '';
if ($_imgUrl = $_category->getImageUrl()) {
$_imgHtml = '<img src="' . 92 more words
Magento2

County Road Walks, Pink Rock June 22nd 2017

This year we had a number of guest athletes competing. We thank them for their support and their contribution to an  enjoyable evening of race walking at the scenic Pink Rock. 122 more words

Championship

Wanted New Cards: Summer Job

Wanted Cards – Summer Job

GCU has congratulations cards for getting a new job, and even for a first job. As we speak many out of school kids are looking for that perfect summer job. 123 more words

Wanted: New Cards

Glass Fiber With Market category, covering Forecast to 2022

Access Full Report @ https://www.reportsandmarkets.com/reports/china-glass-fiber-market-report-status-and-outlook-1023-885-20170615

In China market, the top players include
Jushi Group
Owens Corning Corporation
PPG Industries
CPIC
Taishan Fiberglass (Sinoma)
Sichuan Weibo New Material Group… 204 more words

Research Report

Grab Handles With Market category, covering Forecast to 2022

Access Full Report @  https://www.reportsandmarkets.com/reports/china-grab-handles-market-report-status-and-outlook-311-885-20170615

In China market, the top players include
HOPPE
ASSA ABLOY
Hafele
Sobinco
Allegion
Baldwin
EMTEK
Kwikset
Kuriki
DND
ZOO
SELECO… 253 more words

Research Report