Questions tagged [category-tree]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
2
votes
1answer
26 views

How to get the categories child category list per store in magento2 rest api

I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.
16
votes
0answers
501 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 ...
0
votes
0answers
14 views

Magento 2 : Admin for category selector field does not saved a value in DB

In magento2, admin for category selector field does not saved a value in db sales_rule_form.xml <field name="category_ids"> <argument name="data" xsi:type="array"> ...
0
votes
0answers
14 views

Creating 2 menus from 2 separate categories

So, I am trying to accomplish this design. My issue is trying to populate 2 separate menus because it seems as though I have to create two root categories(which I understand why that is stupid) or ...
9
votes
5answers
23k views

Magento 2 - Get Subcategories of Specific Parent Category

What I'd like to do is grab all of the child categories of a specific parent category. I'm assuming the best way to do this is by using the parent's ID and of those child categories that are returned, ...
2
votes
1answer
1k views

Drag and drop category error

I get There was a category move error. on moving(drag and drop) subcategory to another root category. How I debug this? on console I get Expected to start loader but did not find one in the dom this ...
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'...
1
vote
2answers
2k views

Category sort order for different stores

We want to change the order of categories so they are different in our stores but every time we change the order in say the FRENCH store, the UK store is also changed. Looking at the database it ...
0
votes
1answer
36 views

URL rewrite magento 2 admin-side issue

Magento2 - facing issue with below error in admin panel error in console category:1 Uncaught SyntaxError: Unexpected token C in JSON at position 473 at JSON.parse (<anonymous>) at getData (...
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 ...
1
vote
1answer
77 views

Magento 2 : Add custom array in multiselect UI dropdown in custom UI form

In Magento 2, I want to add multiselect UI dropdown with custom my custom array. I take reference from product edit form "Categories" field and also find out from where UI multiselect tree option ...
0
votes
0answers
50 views

Magento 2 Facing Problem :Could not save product “3194” with position 0 to category 12

I am facing a problem whenever I go into catalog->products->edit product and delete the category from product and click on save button the error is coming. Could not save product "3194" with ...
0
votes
1answer
24 views

Magento 2.3: Is it possible import/create a category tree with category_id assigned

I have to import a 3rd party catalog into Magento 2.3. I need to recreate in Magento the category tree with the same category_id in the original tree because I need it when I update inventory. How can ...
1
vote
0answers
8 views

How to display the category pages based on the custom page inputs?

1) Custom page have to accept few inputs and respective category page need to be displayed based on the inputs 2) Custom page need to be displayed some custom options and those prices need to ...
2
votes
2answers
3k views

Display categories and sub-categories

I'm tryng to display categories and subcategories on a cms page <?php $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ...
0
votes
1answer
742 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
1answer
728 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 ...
1
vote
1answer
334 views

How do I make my category sort orders keep from reverting to different order in admin view?

I am using Magento 1.9.2.1. When I am in Catalog/Manage Categories I am finding that the sort order that I am dragging my categories into is not staying the same. I have caching disabled as this is a ...
0
votes
2answers
90 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 ...
4
votes
0answers
59 views

Magento 2 How to duplicate the category with same structure?

I want to duplicate the category with the same structure and data. How to duplicate child categories here? It is working correctly for a single category. In my controller file, I have the parent ...
0
votes
1answer
65 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
20 views

default store view is not selected by deafult when open any category in magento 2 admin

I have migrated Magento 1.9.3.1 to Magento 2.3.0 I am getting an issue in the admin. When I open category in admin side then English store is selected by default. How can I make default_store_view ...
3
votes
2answers
140 views

Magento 2 - How to get category name and category tree for product or for category id?

Magento 2.2.7 I have to output category name and "tree" or path for product. For instance if my product is in category Lg775 my output should be: Hardware/Motherboards/Intel/Lg775 so far I have this ...
2
votes
0answers
20 views

Magento2.3.0 How to do in left side navigation custom category tree structure create it?

I am using Magento2.3.0 I need in left side layer navigation instead replace category section there our custom category tree display on it and its work as on fronted side only.If any one this type ...
1
vote
0answers
28 views

Problem With Recursion (categories and subcategories)

I'm testing a code from the answer by @digitalsteez on this question: Get Categories and Its Sub Categories I've tested it onto two Magento instance, one has no problems but on the other I'm ...
1
vote
0answers
41 views

Third level categories Url is not working in magento 2

Shop Colors Rushmore Boston Mill Little Cottonwood This my category structure. But child category URLs are not working. Link: mysite.com/shop/colors/rushmore.html
1
vote
0answers
64 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
91 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
40 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 ...
3
votes
2answers
140 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
2
votes
1answer
1k 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
1answer
1k 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
3answers
331 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.
0
votes
0answers
69 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 ...
6
votes
2answers
8k views

Category Paths in Product URLS - Yes or No?

I've heard some conflicting opinions on whether having category paths in your product URLS is a good idea. An SEO guide I'm currently using suggests that Magento doesn’t support this functionality ...
2
votes
1answer
2k views

order sub categories alphabetically

I have spent hours searching forums and trying several methods but cant get anywhere. does anyone know how to order all sub categories in magento to display alphabetically front end A-Z?
0
votes
1answer
10 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
222 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
20 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
287 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 ...
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?
2
votes
1answer
783 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
2
votes
3answers
5k 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
0answers
19 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?
0
votes
0answers
23 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
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
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
1answer
367 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
240 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. ...