Questions tagged [category-tree]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
49 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
1k 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
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
76 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
230 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: ┳ ...
1
vote
1answer
850 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":...
2
votes
2answers
470 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
218 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
57 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 ...
2
votes
1answer
1k 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
538 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
518 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?...
17
votes
0answers
562 views

Magento 1.9 Create new Magento Rest API to get category list

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
681 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
100 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
420 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
383 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
814 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 ...
4
votes
0answers
257 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
600 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
7
votes
2answers
2k views

Magento 2 Custom Module admin form category tree

How to get Magento 2 category tree in Custom Module admin form. I din't use UI Component I am using Main.php like this i am adding $fieldset->addField( 'label', 'text'...
2
votes
3answers
6k views

How to get category tree in Magento 2?

I need to show category tree, just like in admin section, in my custom page. I viewed this solution in magento.stackexchange.com. It was good but limited to 2 levels of category. I need all the ...
0
votes
1answer
41 views

magento 2 custom module grid form need smart tags

I need to add admin grid form list out all category like this Any one guide me
0
votes
1answer
52 views

Get every category with its sub categories without module

I need to get category list with sub categories. I've found multiple solutions that I may need to create a module and get category list inside module's template file. But I need to do this without ...
1
vote
1answer
449 views

Magento 2 How to get all products from a non anchor parent category and its subcategories

I want to display all products from a non anchor parent category and its subcategories. My categories are non anchor. http://i.prntscr.com/NOZYKxj4Sh2S2tw1yHjyLQ.png
1
vote
0answers
213 views

Magento 2.0.17 Category page Error - Uncaught ReferenceError: updateContent is not defined

I am creating a Root/Sub Category from Category page. But in console, showing following error: I am using magento v2.0.7. Browser: Chrome latest version
2
votes
2answers
662 views

Magento 2: “There was a category move error”/“Something went wrong while saving the category”

We are experiencing issues when trying to move or save a category in Magento 2.1.8 Trying to move a category results in: There was a category move error. Whilst trying to save gives this error: ...
1
vote
0answers
203 views

Create a Custom module that has a categories tree Magento 2

I am trying to create a module where the admin can add items in a tree like the when adding categories like this image. Has someone created one I can work off or is there any resources out there I ...
0
votes
0answers
136 views

Can't save Category Display Mode in Magento 1.9

I can't save Display Mode setting when updating a category in Catalog > Category session. Only Products is working. Another 2 options are not being saved. Is there an issue about it? How to ...
1
vote
1answer
450 views

Magento get All tree Categories

I want to get all categories in store. so if set any category option not including in navigation menu the category not showing in list tree. So My question: how i can get all tree categories both ...
1
vote
2answers
60 views

Is it ok for Magento 2 to have 35k categories and 300k products

I'm going to migrate a website to Magento 2 that have 35k entities that really close to categories functionality. So I'm wondering is there any issue to have such amount categories? Is there any ...
1
vote
1answer
490 views

Magento 2: How to add a product grid and category tree in custom module?

I need to add a Product Grid and a Category Tree in my custom module. (Product Grid as given in admin category page & Category Tree as given in admin product page). I need both of them in single ...
1
vote
1answer
203 views

How to modify category tree in Magento admin?

I want to add custom icon/text in category at selected place in screenshot. I don't know which file I need to edit to modify the category tree. Can anyone help me in getting out of this?
2
votes
1answer
932 views

Magento 2: Add UI Multiselect Dropdown

How can I add categories multiselect (same as one used on product page - screen) to my custom module? Edit: Following @PrincePatel suggestion I have rewritten part of my code to use ui_component. The ...
2
votes
3answers
6k views

Magento 2 REST API returns only default category and its children

I am using "rest/V1/categories/" (Magento 2 Rest API). In documentation(devdocs.magento.com/swagger/#) it says "Retrieve list of categories" but it only returns default category(and its all children) ...
0
votes
2answers
763 views

Get products directly assigned to a category

I am using following function to get product collection from a category with it's id. public function getProductCollection($categoryId) { $category = $this->_categoryFactory->create()->...
4
votes
1answer
1k views

Magento 2 - top menu show from 2nd sub category

a client has now a shop with the following structure of categories: Base Shop --Menu 1 ---Sub menu 1 ---Sub menu 2 --Menu 2 --etc Normal magento would only show "shop" in the ...
10
votes
2answers
2k views

Magento 2 : Show admin category tree on frontend

I want to display categories tree on frontend like admin default categories tree. Need to display category tree structure in my custom module and content area for frontend side. Any Help would be ...
1
vote
1answer
180 views

Add category description to “catalog/category_tree” collection

class Ab_CategoryObserver_Model_Observer { public function updateTopMenuJson(Varien_Event_Observer $observer) { $_helper = Mage::helper('catalog/category'); $_categories = $...
0
votes
2answers
1k views

How to display subcategories on category page?

I have used this code in view.phtml to display subcategories on category page <?php foreach ($this->getCurrentCategory()->getChildrenCategories() as $_subcat): ?> <li><a ...
1
vote
4answers
2k views

How to i can get category name and category id with hierarchy parent to child from database in magento?

I'm using this query: select cat.*, cv.value as `category_name` from `catalog_category_entity` as cat join `catalog_category_entity_varchar` as cv on cat.entity_id = cv.`entity_id` join `...
0
votes
1answer
1k views

New Category Page Showing 404

So I have made a new category and copied all settings from another working category with a new name and url etc but I get a 404 when hitting the category frontend. When trying to debug this I have ...
0
votes
1answer
266 views

Display categories and sub-categories : where to paste the code?

I'm very new for magento. I hire a company to create my magento website. however, there are some features that i 'd like to improve. For displaying categories and subcategories in cms page, i found ...
0
votes
0answers
687 views

Magento 2 : Selected Category Not Shows in UI Form

I add category selector in UI form <field name="catalog"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">Magento\Catalog\Ui\Component\...
0
votes
1answer
269 views

Category tree is not showing in manage categories page?

I have installed magento in my server. I want to add categories but its not showing the categories as category tree. If I click add root category or add subcategory, nothing is working in that ...
2
votes
1answer
590 views

Magento 2 Categories not display

Magento 2 Category tree not showing on admin's product edit page? How can I solved it?
0
votes
0answers
215 views

Get a list of sub-categories of parent

Issue I would like to populate a CMS static block with a list of sub-categories of the parent category, separated by the first letter of each sub-category. The desired result Brands (A) Adidas, ...
0
votes
1answer
20 views

Greatly change the category structure of an existing Magento webshop. Negative effects?

I am about to greatly change the order and add / remove categories for an already existing Magento webshop. Does this have any great side effects? For example Will it mess up the Google ranking / ...
0
votes
3answers
342 views

Top-menu renderer isn't fully configured

I deleted a category from my magento installation and then i started getting this error "Top-menu renderer isn't fully configured." on the page and nothing else would work.
1
vote
2answers
720 views

How to add this category in marketing menu?

I want to add new category called aaa and a link called bbb.. in magento2 Thanks for the help.