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 [category-tree]

The tag has no usage guidance.

0
votes
1answer
22 views

Magento 2 Auto-remove empty categories from menu?

I am using Magento 2.3.1 and the pearl theme. My site has many different categories and I wanted to know if there is a way to have magento automatically remove categories that don't have product in ...
1
vote
0answers
21 views

how to create a custom tree similar to the back office category one in Magento 2?

I'm trying to create a left menu like the category one in a custom module to display my own hierarchy. I want to use a custom model from a custom table. I was able to get the category tree in my ...
1
vote
2answers
28 views

Get a list of all category names and ID's - Magento 2

How can I get a list of all category names and their ID's from a store on Magento 2.2? For example something like this Clothes 2 Shirts 5 T-shirts 7 T-shirts 8 Shoes 10 Sport shoes 12 ... It can be ...
0
votes
1answer
21 views

How to customise category top menu navigation by custom category id in Magento 2?

By default Magento 2 showing the all store categories in top menu with a tree structure, I want to filter with custom category ids and only that filtered category need to show in category top menu ...
0
votes
0answers
14 views

Magento Category Structure - How to handle category taxonomy like modern e-commerce sites

I hope this title isn't misleading and properly describes what I am wanting to do. I am also seeing insight from the community for the best way to accomplish the end goal that I want for Magento ...
0
votes
1answer
8 views

Magento 2 Error “URL key for specified store already exists

Basically i am adding a custom category the problem is when i add two child category with same NAME in to one parent category where child category is already present then this shows error of URL KEY. ...
1
vote
1answer
33 views

Magento 2 Add category chooser without UI component

I am trying to add category chooser in my custom admin form without ui component but unfortunately I am getting error in system.log [2019-03-22 09:27:47] main.CRITICAL: Vendor\Module\Block\...
1
vote
0answers
17 views

How to get category detail along with subcategories and products in PHP file not PHTML?

I have looked over internet but can't find a solution to get detail in my controller or block file i have tried Registry Tried get id of category from param Also tried from Magento\Catalog\Model\...
2
votes
1answer
54 views

magento 2 Infortis ultimo theme display category tree menu on the left of the search result page

I am using the Infortis ultimo theme, in the included feature, i was able to add the category tree menu on the left bar of each category page, but how can i add it to the search result page? is this ...
2
votes
2answers
80 views

Unlink and link product to category

Need a script where current existing products needs to unlink and link to other categories. let me know the process also
1
vote
1answer
758 views

Multiselect category dropdown on admin form

I have created custom CRUD on new database table. I just wanted to save comma separated categories in a field. I have this code for multiselect categories: $fieldset->addField( 'categories', ...
0
votes
0answers
21 views

How to get all categories and products in one collection in magento 2

How to get all categories(with levels) and it's products in one collection in magento 2
0
votes
1answer
44 views

Magento 2 Product Form Categories Sort Alphabetically From the Backend

I want to sort Categories alphabetically of the product form, how can I? For more clarification please look onto the below picture. As I checked, by default Magento 2 sort according to the category ...
1
vote
0answers
18 views

How to skip any category in seo meta title template?

We have magento 2 on website we have 4 categories, we sell photocopier parts, let me give an example what issue we are facing and what we want. Konica Minolta - Bizhub Color Series- Bizhub 203 - ...
0
votes
0answers
113 views

Magento 2 - Layered navigation Parent and Child Category Filter issue

I am using WeltPixel layered navigation Free extension. In category filter, third level categories was not showing in filter navigation by default. I added some code to get third level categories. ...
0
votes
1answer
34 views

Can't choose any category in admin

I can't choose any category in the admin panel for editing. You will always see the creation of a new category. Magento 1.9.4.0 clean setup, mariaDB 10.3, php 7.1.25, CentOS.
0
votes
0answers
17 views

Blank page for subcategory on the storefront

One of the subcategories in my store gives a blank page. What are the possible reasons for this to happen in Magento?
3
votes
1answer
65 views

Get all 3rd level categories

is there any chance how to get ALL third level categories available? I have searched whole internet and found only getting categories based on parent category but it doesnt return whole store 3rd ...
3
votes
1answer
28 views

Magento 2: Can't select “categories” on cart pricerule

I have try to make a price rule in Magento 2. But I can't see the option "categories". Someone know where I can activate it? Or did i do something wrong?
1
vote
0answers
79 views

magento 2 get all category id of a specific store including all level nested child category

i want to get all category id of a specific store in magneto2 including its all root category and all level nested child category id of all root category i am trying with following cod but using this ...
1
vote
0answers
69 views

Magento2 How to get the category collection as tree structure under multiselect field programmatically.?

I want show category collection as tree structure for custom multiselect field at admin end as reference like below
0
votes
1answer
17 views

Load category, but only with limited data to build a Breadcrumb

Based on the helper catalog there is a function that returns a path for the breadcrumb to be displayed in Magento when viewing a Product. I want to enhance this method to return the full path of the ...
2
votes
1answer
644 views

How to add multi-select category tree at admin end in magento 2?

I would like to display *Category Tree Names** in multi select field in magento 2 admin end? I have tried with below code but displaying only first cateogires could you please any one help on this? ...
1
vote
0answers
30 views

Duplicating Categories

I am trying to set up a new website which has been migrated from an older site. This migration carried over the old category structure. Within the new structure i want to build, I am creating new ...
4
votes
1answer
118 views

A-Z Category Listing Magento 2 Static Block

I am attempting to create a A-Z category listing within a static block, something like the attached image. The static block will be on the parent category, and the listing will show the parent ...
1
vote
1answer
176 views

Magento 2: How does the category tree/node work?

I must admit that I am having trouble understanding the category tree/node thing in magento. I have extended the Topmenu class to build my own supermenu. It works fine except the category children are ...
1
vote
1answer
39 views

Magento2: Intercept category moved inside tree

I am trying to intercept when a category is moved inside the category tree. At the beginning I thought to observe the event catalog_category_tree_move_after with an Observer class but I found that ...
2
votes
1answer
410 views

Category and sub category image widget

I tried to create category and subcategory image widget.I got first level of categories with category images. app/code/Customcategory/CatewithimgWidget/Block/Widget CatewithimgWidget.php class ...
0
votes
1answer
36 views

Magento 2. Diffrent menu options for different store views

Going through this. https://docs.magento.com/m2/ce/user_guide/catalog/catalog-scope.html I found this Because the specific menu options are defined at the store view level, each view can have a ...
1
vote
0answers
34 views

Removed products from a category but still showing

I removed a bunch of products from a category and it's still showing in the webshop. What I've done is: Reindexed all indexes Cleared all caches Another problem that keeps happening is that I can ...
2
votes
1answer
397 views

How to create the magento2 Mega drop down menu?

Creating mega drop down menu on magento2, able to get the data from the database product categories and subcategories
0
votes
0answers
13 views

Insert and Read Categories in Sync

Good Morning I have an application that adds a new category and should display the listing of categories with the new record The category tree is displayed, but not with the new child record To ...
1
vote
0answers
17 views

Bug cannot create new catalog

I am seeing the following broken code with \n characters when I go to Admin->Catalog->Manage Categories. I was wondering if someone has a clue what kind of bug is this and how can i fix it.
0
votes
1answer
45 views

Display Subcategories images on home page

I am trying to display my subcategories images on my home page with the following code: <?php /** * http://fishpig.co.uk - Magento Tutorials * Display top level categories and subcategories **/...
1
vote
0answers
157 views

Magento 2.2: Want to add a category tree like structure field in admin custom module [duplicate]

I have created 2 custom admin module, I want to add a category like tree structure in my module 2, that will take values from module 1. Or can create multiselect for show as below senario: ┳ ...
0
votes
1answer
501 views

creating categories and subcategories using the api catalogCategoryRepositoryV1

I am able to create categories under default category but I am not able to create sub category while creating a new category under default. The body I am passing is { "category": { "parent_id":...
1
vote
2answers
229 views

How to move category to another parent category magento 2.1.8?

I want to move a category from parent category to another parent category. category Drag and drop from admin is too slow. So how can I do this using code?
0
votes
1answer
76 views

How to add a custom collection as "Category Chooser” in Magento 2 Backend

I want to add a category selector for my custom collection. I checked some articles related to this. Followed this article but haven't got any solution. Please advice a good solution.
1
vote
0answers
40 views

SOAP V2 : catalog_category.tree Not Working on Localhost

Configuration : Code: <?php $proxy = new SoapClient('http://192.168.1.89/abc/api/v2_soap/?wsdl'); // TODO : change url $sessionId = $proxy->login('cat', 'welcome'); // TODO : change login and ...
1
vote
1answer
663 views

Add custom css class to each item in Topmenu - Magento 2

I'm looking for a way to add a custom css class to each menu item into the Topmenu. I already tried to it using interceptor method in Topmenu public function beforeGetHtml( \Magento\Theme\Block\...
0
votes
1answer
299 views

Magento 1 Update product categories to multiple root categories programmatically

In my Magento installation, I have created two root categories, one for each website. Let's say in my UK website, it use root category that has categoryID 2. In my US website, it uses root category ...
1
vote
1answer
365 views

How to increase the paging limit in magento 1.9 REST API

I am using the following code to fetch category tree where almost i want to fetch around 1000 records but only getting 100 records because of limit. $resourceUrl = "$apiUrl/categories/store/default?...
13
votes
0answers
439 views

Create new Magento Rest API to get category list in Magento 1.9

I am very confused about what kind of error I am doing to follow these steps provided here at the following link : Create new Magento Rest API to get category list in Magento After doing all ...
2
votes
0answers
504 views

Magento 2 sort category programmatically by alphabet ascending order

I want to sort category programmatically by alphabet ascending order. I am able to append category programmatically by below code. But I can not able to sort category by code.
1
vote
0answers
78 views

Why category resource is not present in catalog? Also explain how to add category

I want to retrive category tree in rest api but category is missing in resources. While hitting 127.0.0.1/magento/api/rest/category got message Request does not match any route. Please tell how to ...
1
vote
1answer
322 views

http://myurl/api/rest/categories is not working

I want to get category tree in magento 1.9 using REST API using this code http://myurl/api/rest/categories but i am getting error 404. Please help me in to get over this error
3
votes
1answer
294 views

Issue - Multi-Store Category Disable Not Working

I have disabled one of my categories, but still the category display on my menu bar in the website. How can I solve this issue? Menu Extension : https://web-experiment.info/webandpeople-custom-...
1
vote
2answers
528 views

How to add product grid from phtml file

I have a category with more than 50K products therefore whenever I click on it in admin "Manage Categories" it gives me memory exhaust error, now I want to only load products when I click on "Category ...
3
votes
0answers
179 views

Magento 2 Category Field in Backend empty, Index Table wrong?

I'm trying to add categories to my products via Admin UI but unfortunately, the field in the backend is empty and doesn't show my categories: I've had this problem since some weeks, but usually it ...
1
vote
1answer
392 views

category name is not show after save category` in backend in magento 2

I create new sub category under default category after save category name is not show ? help me please