Skip to main content

Questions tagged [sub-categories]

Denotes questions regarding Magento Sub Categories

Filter by
Sorted by
Tagged with
-1 votes
1 answer
25 views

how to make full static like the red part make it like the blue marked part

how to make full static like the red part make it like the blue marked part.
FastCellular's user avatar
1 vote
1 answer
45 views

Show only active subcategories

so I'm trying to create a widget that will show my subcategories. I've implemented the code and it works but the problem is that it shows the categories even that are not active. I need some help or ...
idkrlly's user avatar
  • 11
0 votes
1 answer
49 views

how to display sub-categories of a parent category

I have this code below that display only 3 of my categories. how can i display sub-category of a parent for example category with an ID of 169; <?php namespace Category\Categories\Block\Widget; ...
Bayzel's user avatar
  • 187
0 votes
0 answers
236 views

magento 2 Category Not Showing on frontend after migration

I dump the database from Magento 2 to Magento 2 and the sub-category is not saved in database catalog_category_entity_int and from the backend, its show category is enabled but in database its ...
Muhammad arslan's user avatar
0 votes
0 answers
354 views

How to change HTML of Menu in Magento 2.4.2 Claue Theme?

I want to change some HTML in Magento 2.4.2 Claue theme. Like when I add 12 subcategory the design is not good it will add subcategory one below other so it will not looking good. I want to add ...
Prits's user avatar
  • 625
0 votes
1 answer
37 views

How to get subcategories on one page and products on another page?

I have category seating and I have some subcategories (sofa,chair) in it. I want one category page that shows list of sub categories and another page which shows all the products of the seating. We ...
pooja thakkar's user avatar
0 votes
1 answer
605 views

Magento 2 : Add "View All" Link after all sub categories

How to display "View All" Link after all sub categories in Magento 2. I used this blog. But, It's display main menu and sub menu. I want to add "View All" in all sub categories ...
Ankita Patel's user avatar
0 votes
1 answer
387 views

Re-direct Category Menu item to different URL

I want to redirect my Menu sub item to a different URL how can I do that? Like Blog Menu Item to Dropbox.com I want the Blog menu to be redirected to : a seperate URL to new website for example: www....
Anonymous Record's user avatar
0 votes
1 answer
704 views

Get child category name from category id

I want to get the category name of Parent Category as well as Child Category. For this, I am checking if Category == Parent Category and storing Category name into an array. And If Category is a Sub ...
karanrp's user avatar
  • 121
0 votes
1 answer
656 views

How to disable all categories via programatically in magento 2

I have tried to disable categories in Magento 2 I have tried to achieve this via PHP script like below <?php use \Magento\Framework\App\Bootstrap; require __DIR__ . '/../app/bootstrap.php'; $...
Jaisa's user avatar
  • 2,626
0 votes
0 answers
23 views

Magento Products and Categories in the same page

I'm fairly new to magento, and i've been looking for this solution for a while... Is it possible to show categories(ex : subcategories) and products on the same page ? I didn't seem to find anything ...
Pedro Ferreira's user avatar
0 votes
1 answer
2k views

Magento 2.3: Parent Category page does not show any subcategory products after data migration

I just migrated from Magento 1.9 to Magento 2.3.4 and I have an anchor category that should be showing all the subcategories products, but somehow it does not show any of the subcategory products. ...
jojo's user avatar
  • 39
0 votes
1 answer
87 views

Widget Display Options in Magento2 - select all subcategories of category in one click

Is it possible to select all subcategories of category with one click only ? I want to display my widget on category and all subcategories of this category. At this moment I must select every ...
maya5510's user avatar
0 votes
1 answer
286 views

How to hide category name on category page only for second level category in magento 2

I want to hide the category name on the category page only for the sub category of only one parent category. The category names will be displayed for all other categories and sub categories. For e.g I ...
Nafsss's user avatar
  • 760
0 votes
1 answer
294 views

Magento 1.9 How can I hide or exclude in the Navigation Menu category under sub-sub-sub category items

My project running Magento version Magento1.9.3.2.I have a menu drop down more category show that main reason hide or remove some item under the category. This facility Magento admin panel through ...
junaidh's user avatar
  • 63
0 votes
1 answer
160 views

How to show categories in the left column in magento?

Like u see in above picture i want it to show my categories and subcategories also i want this column to work on products to not just in the home page Thanks Resolved using "Sebwite" extension.
Wed's user avatar
  • 13
0 votes
2 answers
278 views

How to get Sub category names of a particular Parent category in magento 2.3

I want to fetch Sub categories name of a particular Parent category using Parent category Id. Please note, i dont want to use Object manager directly in phtml file. I am using block to write function.
Nafsss's user avatar
  • 760
2 votes
3 answers
464 views

The correct implementation of the output of subcategories in the main category

i want to display subcategories in the root category, i found this way that works for me. app/design/frontend/[Vendor]/[theme]/Magento_Catalog/templates/category/products.phtml <?php $category =...
ann karsksya's user avatar
1 vote
2 answers
909 views

Display subcategories on category Magento 2

i would like please your help. I am newbie on Magento and I would like to show subcategories of category on its parent's page on a slider. I tried initially to show the categories on the parent ...
Black Widow's user avatar
0 votes
1 answer
2k views

Error "URL key for specified store already exists" when enable "Anchor" in category in Magento 2.3.2

Categories in two different parent with same url-key. First category in the list is saving fine when we update anything in that. But when I am enabling Anchor => Yes In the second category with ...
Vinod Kumar Clix's user avatar
0 votes
2 answers
526 views

Magento 2.3 static Block to replace subcategories in navigation

I am attempting to add a block in place of the subcategory in the main navigation or site navigation. I don't want to use a bloated extension, just minimal code. I am using a blank custom theme I made....
Demasys's user avatar
  • 11
0 votes
1 answer
210 views

magento 2 get first level category from current catgeory ID in controller

I am trying to get first level category from current category ID in my controller . For example- I have Maincategory SubCategory1 SubCategory2 SubChild1 SubChild2. ...
chanchal's user avatar
  • 417
1 vote
1 answer
619 views

How to get sub category of sub category?

I have to load parent category, sub category and its sub categories. As of now, I can able to load the parent and its sub category but I have no idea how to load its sub category. Below is the code I ...
MagentoDev's user avatar
0 votes
2 answers
2k views

Magento 2 How to get disable/enable child categories?

I am working with display all categories on a custom page, either it is enabled or disabled. When I try to get child categories with "getChildrenCategories()", but it is returning only enabled child ...
Utsav Gupta's user avatar
  • 1,243
4 votes
1 answer
736 views

How to sort the subcategories of specific parent category in magento 2.3 programatically

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...
1990rk4's user avatar
  • 593
1 vote
1 answer
1k 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 ...
Toranto mina's user avatar
0 votes
0 answers
825 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 ...
Riccardo Ronconi's user avatar
1 vote
1 answer
186 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. ...
brackfost's user avatar
  • 1,030
2 votes
0 answers
33 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 ...
Raj Mohan's user avatar
  • 238
0 votes
2 answers
1k 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/...
Priya's user avatar
  • 589
1 vote
4 answers
806 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');...
Khushbu's user avatar
  • 825
0 votes
0 answers
134 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 ...
MehulKanjariya's user avatar
0 votes
1 answer
46 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/...
aj noguerra's user avatar
1 vote
0 answers
39 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 ...
aj noguerra's user avatar
1 vote
1 answer
523 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 ...
arno's user avatar
  • 348
1 vote
0 answers
249 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(); $...
chanchal's user avatar
  • 417
1 vote
0 answers
34 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 ...
Toranto mina's user avatar
1 vote
2 answers
2k 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\...
Rufus's user avatar
  • 621
2 votes
4 answers
5k 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(); ...
Bhakti Thakkar's user avatar