Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sub-categories]

Denotes questions regarding Magento Sub Categories

4
votes
1answer
25 views

Magento 2.3 : How to sort the subcategories of specific parent category programmatically

I have the parent category "XXX" and having around 115 subcategories under the same. I am trying to sort the subcategories listed under of specific parent category at the backend...
1
vote
1answer
19 views

display subcategoies and their products on parent category page

I want to display subcategoies and their products on parent category page I tried this code on ../Magento_Catalog/templates/category/products.phtml but it shows all product of the parent category on ...
0
votes
0answers
14 views

Adding subcategory on bundle product on product page ( magento 2 )

is there any way to add subcategory on bundle product in magneto 2 menu and sub-menu
0
votes
0answers
15 views

Magento 2 - 404 on category page if said category has no products

I've got a problem with category pages: whenever a subcategory has any number of products inside, then the category page works. But, if the subcategory is empty, it just returns 404, not "no items in ...
1
vote
1answer
20 views

Getting Subcategories even if product count for each is 0

In my module, I am getting the current ID and then using the category repository and the "getChildren" method. This works great, except it doesn't return child categories with product counts of 0. ...
2
votes
0answers
22 views

Catalogsearch super sub categories products search not working

I tried a lot, but I can't find a solution. In catalogsearch only showing the selected category product, it's not showing the subcategory of the selected category. I tried a lot of suggestion on ...
0
votes
1answer
33 views

Get child category name and image - Magento 2.3

I'm new to magento, i like to create own module for getting child category name and image in category page. Created Vendor name as "Sub" and modulename as "Categories" app/code/Sub/Categories/View/...
1
vote
5answers
40 views

Categories are not in order same as in Admin panel Magento 2

I am listing children categories of specific category using below code: $categoryFactory = $this->_categoryFactory->create(); $category = $categoryFactory->loadByAttribute('url_key', 'shop');...
0
votes
0answers
19 views

Magento2 Which table store category ascending order or descending order store category

My project category and sub category I have set ascending order or descending order store category via script or sql query. Magento2 Which table store category & sub category ascending order or ...
0
votes
1answer
14 views

Add options to Sub-category attribute in Magento 1

I want to add additional option to the subcategory attribute but I cannot locate where to update its content within the Magento Admin Panel. See this link for full image - https://drive.google.com/...
1
vote
0answers
18 views

Edit dropdown attribute of Sub category

I am trying to fill-in the information of a product category in Magento v.1.9.4.1, however, I am unable to locate or figure out how to add an additional option under this "Dropdown" menu I was able ...
1
vote
1answer
31 views

Magento2.3 display images of a category in .phtml

I have a block that returns a category by its ID. I loop on the category's children and I would like to be able to display their respective images and names. for the moment I can display their names ...
0
votes
0answers
51 views

Magento 2.3 render first level subcategory grid with images on category page

Hi I want to render sub categories grid with images. Using below code in products.phtml but it renders all levels sub-categories. <?php $category = $block->getCurrentCategory(); $...
0
votes
0answers
21 views

mega menu categories

1- I created categories in the catalog->category menu upto 3rd level i.e top category ->sub category->sub to sub category. I want these to be shown in the mega menu categories option, but it doesn't ...
1
vote
0answers
17 views

magento 2 seperated parent and sub categories dropdowns

I want to show different input dropdown that seperate parent categories and subcategories. Indeed, the first dropdown shows parent categories, the second dropdown empty at first sight, then loaded ...
0
votes
2answers
117 views

How to get child categories using object manager?

For now I'm getting category name. This is my code: app/code/Vendor/Module/view/frontend/templates/storecategories.phtml <?php $categoryId = 65; $_objectManager = \Magento\...
0
votes
0answers
71 views

How to get category and subcategory in sidebar in same navigation bar magento 2

I want to display categories and subcategories in the navigation bar and keep the tree of the category in all page of categories please any help.
1
vote
2answers
335 views

How to resize Image in Magento 2?

I want to resized image of subcategory. for that, I added this code in .phtml file.I'm getting wrong path for image <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
0
votes
1answer
100 views

Magento 2 : How to show sub categories on Static block?

How to show the sub categories on category pages ? We have number of categories and sub categories on our website. So, we want to show the products for last level categories only. For the all sub ...