Questions tagged [category-id]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
37 views

Magento 2: Get custom category attributes by category id

I have category ID and need to get all custom attribute for example thumbnail image. my code does not return all attributes $category = $this->categoryRepository->get($childId, $this->...
0
votes
1answer
22 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 ...
0
votes
1answer
17 views

How to get category image based on category ID?

I am trying to get an image which is uploaded for the category. & also I have category id and want to load complete details of that category based on category ID. How can I achieve this?
0
votes
0answers
70 views

How to import categories/work with category ID's when doing a Dataflow - Profiles import from 1.9.1 to 1.9.4

Magento 1.9.1 to 1.9.4 We setup a bit newer version of Magento on a new server. The old install still currently running is Magento 1.9.1. I am getting ready to do a Dataflow - Profiles export/import ...
0
votes
1answer
814 views

Magento 2: How to get all products using category id

I have category id in phtml file. how to display all products under this category using category id and foreach loop. I tried this code but it shows invalid variable in foreach $categoryId = 6; // ...
0
votes
2answers
1k views

how to get product id from which category in magento2 [closed]

I want to get product id and also check that this product's category id and name. and also want to check that this current category id and selected product's category id equal or not...
0
votes
1answer
213 views

Get child category id Mangeto 1.9.2

I have category structure like this. Shirts: Male. Female. Pents: Male. Female. What I'm trying is get the category ID by giving passing the parameter like 'Petns/Male' or something like this. I ...
2
votes
2answers
457 views

How can i export fields like category name not category id via Dateflow-profiles export

I need to get my all products category name, actually dataflow profiles return category id only, how can i get category name not category id.
1
vote
0answers
277 views

how to include category id in url on category page?

I have one query regarding category id.I need to include category id, in category list page. Currently it should be like this : http://magento2.shelltag.com/women/bags/backpacks I want to show like ...
0
votes
1answer
632 views

Get array of all active category ID's

How do I get an array containing the ID's of all active categories?