Magento 2 - Category Listing in Left ColumnMagento 2 - Category Listing in Left sidebarMagento 2 - show category tree in left navigationMagento 2 - Retrieve categoriesDrag and drop category errorInsert Block in left sidebar of layered navigationMagento 2 - How do I set up a category page?Magento 2 - Category Listing in Left sidebarMagento 2 : subcategories in category menushow categories on left sideMagento 2 - Layered navigation Parent and Child Category Filter issue
Were any of the books mentioned in this scene from the movie Hackers real?
Understanding Python syntax in lists vs series
Variance and covariance inequality
How to not get blinded by an attack at dawn
Did any "washouts" of the Mercury program eventually become astronauts?
Was the dragon prowess intentionally downplayed in S08E04?
What color to choose as "danger" if the main color of my app is red
Is the seat-belt sign activation when a pilot goes to the lavatory standard procedure?
Understanding Deutch's Algorithm
How to continually let my readers know what time it is in my story, in an organic way?
c++ conditional uni-directional iterator
Holding rent money for my friend which amounts to over $10k?
Computing a series sum
Wireless headphones interfere with Wi-Fi signal on laptop
Is my test coverage up to snuff?
Why would someone open a Netflix account using my Gmail address?
Which creature is depicted in this Xanathar's Guide illustration of a war mage?
Why commonly or frequently used fonts sizes are even numbers like 10px, 12px, 16px, 24px, or 32px?
Would life always name the light from their sun "white"
Will there be more tax deductions if I put the house completely under my name, versus doing a joint ownership?
What would a Dragon have to exhale to cause rain?
Can I say: "When was your train leaving?" if the train leaves in the future?
What dog breeds survive the apocalypse for generations?
What kind of action are dodge and disengage?
Magento 2 - Category Listing in Left Column
Magento 2 - Category Listing in Left sidebarMagento 2 - show category tree in left navigationMagento 2 - Retrieve categoriesDrag and drop category errorInsert Block in left sidebar of layered navigationMagento 2 - How do I set up a category page?Magento 2 - Category Listing in Left sidebarMagento 2 : subcategories in category menushow categories on left sideMagento 2 - Layered navigation Parent and Child Category Filter issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need to list out categories and child categories in the left nav of the category page and I'm trying to use this extension:
https://github.com/Sebwite/magento2-category-sidebar
As of now all that it is doing is showing the to root category and not pulling in any of the child categories:
Is there another solution to this? Or does someone have experience with this particular extension and would know what is going on?
magento2 category extensions
add a comment |
I need to list out categories and child categories in the left nav of the category page and I'm trying to use this extension:
https://github.com/Sebwite/magento2-category-sidebar
As of now all that it is doing is showing the to root category and not pulling in any of the child categories:
Is there another solution to this? Or does someone have experience with this particular extension and would know what is going on?
magento2 category extensions
1
Is all parent categories haveIs Anchor
valueyes
if not make it yes and re-index and try.
– Aman Alam
Jun 22 '16 at 21:42
You welcome always
– Aman Alam
Jun 23 '16 at 5:33
I also encountered the same problem, please tell me how to do? I have run the command: php bin / magento indexer: reindex However, no change
– user41664
Jul 1 '16 at 13:46
I followed Aman's instructions and made sure all of my parent categories hasIs Anchor
set toyes
and then I ranphp bin/magento indexer:reindex
at the root install of magento 2. Also, make sure you have caching turned off or clear your cache after running the command.
– Paul
Jul 1 '16 at 14:38
I also have the same issue and I fix this using Is Anchor . I want to remove the "Default category " from left side bar , Its working fine in local server , but on dev server the left sidebar start with "Default Category" . I did check all the settings and everything is same.
– Pravin
May 12 '17 at 7:34
add a comment |
I need to list out categories and child categories in the left nav of the category page and I'm trying to use this extension:
https://github.com/Sebwite/magento2-category-sidebar
As of now all that it is doing is showing the to root category and not pulling in any of the child categories:
Is there another solution to this? Or does someone have experience with this particular extension and would know what is going on?
magento2 category extensions
I need to list out categories and child categories in the left nav of the category page and I'm trying to use this extension:
https://github.com/Sebwite/magento2-category-sidebar
As of now all that it is doing is showing the to root category and not pulling in any of the child categories:
Is there another solution to this? Or does someone have experience with this particular extension and would know what is going on?
magento2 category extensions
magento2 category extensions
asked Jun 22 '16 at 21:20
PaulPaul
68331225
68331225
1
Is all parent categories haveIs Anchor
valueyes
if not make it yes and re-index and try.
– Aman Alam
Jun 22 '16 at 21:42
You welcome always
– Aman Alam
Jun 23 '16 at 5:33
I also encountered the same problem, please tell me how to do? I have run the command: php bin / magento indexer: reindex However, no change
– user41664
Jul 1 '16 at 13:46
I followed Aman's instructions and made sure all of my parent categories hasIs Anchor
set toyes
and then I ranphp bin/magento indexer:reindex
at the root install of magento 2. Also, make sure you have caching turned off or clear your cache after running the command.
– Paul
Jul 1 '16 at 14:38
I also have the same issue and I fix this using Is Anchor . I want to remove the "Default category " from left side bar , Its working fine in local server , but on dev server the left sidebar start with "Default Category" . I did check all the settings and everything is same.
– Pravin
May 12 '17 at 7:34
add a comment |
1
Is all parent categories haveIs Anchor
valueyes
if not make it yes and re-index and try.
– Aman Alam
Jun 22 '16 at 21:42
You welcome always
– Aman Alam
Jun 23 '16 at 5:33
I also encountered the same problem, please tell me how to do? I have run the command: php bin / magento indexer: reindex However, no change
– user41664
Jul 1 '16 at 13:46
I followed Aman's instructions and made sure all of my parent categories hasIs Anchor
set toyes
and then I ranphp bin/magento indexer:reindex
at the root install of magento 2. Also, make sure you have caching turned off or clear your cache after running the command.
– Paul
Jul 1 '16 at 14:38
I also have the same issue and I fix this using Is Anchor . I want to remove the "Default category " from left side bar , Its working fine in local server , but on dev server the left sidebar start with "Default Category" . I did check all the settings and everything is same.
– Pravin
May 12 '17 at 7:34
1
1
Is all parent categories have
Is Anchor
value yes
if not make it yes and re-index and try.– Aman Alam
Jun 22 '16 at 21:42
Is all parent categories have
Is Anchor
value yes
if not make it yes and re-index and try.– Aman Alam
Jun 22 '16 at 21:42
You welcome always
– Aman Alam
Jun 23 '16 at 5:33
You welcome always
– Aman Alam
Jun 23 '16 at 5:33
I also encountered the same problem, please tell me how to do? I have run the command: php bin / magento indexer: reindex However, no change
– user41664
Jul 1 '16 at 13:46
I also encountered the same problem, please tell me how to do? I have run the command: php bin / magento indexer: reindex However, no change
– user41664
Jul 1 '16 at 13:46
I followed Aman's instructions and made sure all of my parent categories has
Is Anchor
set to yes
and then I ran php bin/magento indexer:reindex
at the root install of magento 2. Also, make sure you have caching turned off or clear your cache after running the command.– Paul
Jul 1 '16 at 14:38
I followed Aman's instructions and made sure all of my parent categories has
Is Anchor
set to yes
and then I ran php bin/magento indexer:reindex
at the root install of magento 2. Also, make sure you have caching turned off or clear your cache after running the command.– Paul
Jul 1 '16 at 14:38
I also have the same issue and I fix this using Is Anchor . I want to remove the "Default category " from left side bar , Its working fine in local server , but on dev server the left sidebar start with "Default Category" . I did check all the settings and everything is same.
– Pravin
May 12 '17 at 7:34
I also have the same issue and I fix this using Is Anchor . I want to remove the "Default category " from left side bar , Its working fine in local server , but on dev server the left sidebar start with "Default Category" . I did check all the settings and everything is same.
– Pravin
May 12 '17 at 7:34
add a comment |
3 Answers
3
active
oldest
votes
After reindexing my data, it worked. I just ran this at the webroot of my magento install:
php bin/magento indexer:reindex
add a comment |
In my case, I installed this extension with composer. And it also has this bug. I downloaded zip package and reinstall it. And now it works. The package with composer was out of date.
add a comment |
We can get categories and subcategories by below code at anywhere
<?php
$objectManagerr = MagentoFrameworkAppObjectManager::getInstance();
$categoryFactory = $objectManagerr->create('MagentoCatalogModelResourceModelCategoryCollectionFactory');
$categories = $categoryFactory->create()
->addAttributeToSelect('*');
foreach ($categories as $category)
$catId = $category->getId();
echo $category->getName();
$subcategory = $objectManagerr->create('MagentoCatalogModelCategory')->load($catId);
$subcats = $subcategory->getChildrenCategories();
foreach ($subcats as $subcat)
$_category = $objectManagerr->create('MagentoCatalogModelCategory')->load($subcat->getId());
echo $_category->getName();
?>
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f122363%2fmagento-2-category-listing-in-left-column%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
After reindexing my data, it worked. I just ran this at the webroot of my magento install:
php bin/magento indexer:reindex
add a comment |
After reindexing my data, it worked. I just ran this at the webroot of my magento install:
php bin/magento indexer:reindex
add a comment |
After reindexing my data, it worked. I just ran this at the webroot of my magento install:
php bin/magento indexer:reindex
After reindexing my data, it worked. I just ran this at the webroot of my magento install:
php bin/magento indexer:reindex
answered Jun 23 '16 at 0:10
PaulPaul
68331225
68331225
add a comment |
add a comment |
In my case, I installed this extension with composer. And it also has this bug. I downloaded zip package and reinstall it. And now it works. The package with composer was out of date.
add a comment |
In my case, I installed this extension with composer. And it also has this bug. I downloaded zip package and reinstall it. And now it works. The package with composer was out of date.
add a comment |
In my case, I installed this extension with composer. And it also has this bug. I downloaded zip package and reinstall it. And now it works. The package with composer was out of date.
In my case, I installed this extension with composer. And it also has this bug. I downloaded zip package and reinstall it. And now it works. The package with composer was out of date.
answered Aug 17 '17 at 3:27
Hùng Thế HiểnHùng Thế Hiển
17916
17916
add a comment |
add a comment |
We can get categories and subcategories by below code at anywhere
<?php
$objectManagerr = MagentoFrameworkAppObjectManager::getInstance();
$categoryFactory = $objectManagerr->create('MagentoCatalogModelResourceModelCategoryCollectionFactory');
$categories = $categoryFactory->create()
->addAttributeToSelect('*');
foreach ($categories as $category)
$catId = $category->getId();
echo $category->getName();
$subcategory = $objectManagerr->create('MagentoCatalogModelCategory')->load($catId);
$subcats = $subcategory->getChildrenCategories();
foreach ($subcats as $subcat)
$_category = $objectManagerr->create('MagentoCatalogModelCategory')->load($subcat->getId());
echo $_category->getName();
?>
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
add a comment |
We can get categories and subcategories by below code at anywhere
<?php
$objectManagerr = MagentoFrameworkAppObjectManager::getInstance();
$categoryFactory = $objectManagerr->create('MagentoCatalogModelResourceModelCategoryCollectionFactory');
$categories = $categoryFactory->create()
->addAttributeToSelect('*');
foreach ($categories as $category)
$catId = $category->getId();
echo $category->getName();
$subcategory = $objectManagerr->create('MagentoCatalogModelCategory')->load($catId);
$subcats = $subcategory->getChildrenCategories();
foreach ($subcats as $subcat)
$_category = $objectManagerr->create('MagentoCatalogModelCategory')->load($subcat->getId());
echo $_category->getName();
?>
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
add a comment |
We can get categories and subcategories by below code at anywhere
<?php
$objectManagerr = MagentoFrameworkAppObjectManager::getInstance();
$categoryFactory = $objectManagerr->create('MagentoCatalogModelResourceModelCategoryCollectionFactory');
$categories = $categoryFactory->create()
->addAttributeToSelect('*');
foreach ($categories as $category)
$catId = $category->getId();
echo $category->getName();
$subcategory = $objectManagerr->create('MagentoCatalogModelCategory')->load($catId);
$subcats = $subcategory->getChildrenCategories();
foreach ($subcats as $subcat)
$_category = $objectManagerr->create('MagentoCatalogModelCategory')->load($subcat->getId());
echo $_category->getName();
?>
We can get categories and subcategories by below code at anywhere
<?php
$objectManagerr = MagentoFrameworkAppObjectManager::getInstance();
$categoryFactory = $objectManagerr->create('MagentoCatalogModelResourceModelCategoryCollectionFactory');
$categories = $categoryFactory->create()
->addAttributeToSelect('*');
foreach ($categories as $category)
$catId = $category->getId();
echo $category->getName();
$subcategory = $objectManagerr->create('MagentoCatalogModelCategory')->load($catId);
$subcats = $subcategory->getChildrenCategories();
foreach ($subcats as $subcat)
$_category = $objectManagerr->create('MagentoCatalogModelCategory')->load($subcat->getId());
echo $_category->getName();
?>
answered Aug 17 '17 at 7:55
Abhinav SinghAbhinav Singh
2,155612
2,155612
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
add a comment |
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
As per the magento 2 concept Object manager is not standard way to do. you need to use factory method. Many of the developers are recommending standard solutions that will definately help someone to follow the standard solution.
– jack
Oct 28 '17 at 12:35
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f122363%2fmagento-2-category-listing-in-left-column%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Is all parent categories have
Is Anchor
valueyes
if not make it yes and re-index and try.– Aman Alam
Jun 22 '16 at 21:42
You welcome always
– Aman Alam
Jun 23 '16 at 5:33
I also encountered the same problem, please tell me how to do? I have run the command: php bin / magento indexer: reindex However, no change
– user41664
Jul 1 '16 at 13:46
I followed Aman's instructions and made sure all of my parent categories has
Is Anchor
set toyes
and then I ranphp bin/magento indexer:reindex
at the root install of magento 2. Also, make sure you have caching turned off or clear your cache after running the command.– Paul
Jul 1 '16 at 14:38
I also have the same issue and I fix this using Is Anchor . I want to remove the "Default category " from left side bar , Its working fine in local server , but on dev server the left sidebar start with "Default Category" . I did check all the settings and everything is same.
– Pravin
May 12 '17 at 7:34