Questions tagged [category-id]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

magento 2 get top level category id by product-Id or SKU in sql query

Am trying to get Top level category id of a product. but in below query am getting all category_ids those related to product. how to get the top level category Id? $sql = "SELECT e.entity_id AS 'id', ...
0
votes
0answers
19 views

products csv import categories not updated in magento2

I'm importing product sku and category ids using product import in magento2. but not working please anyone help me. eg: sku,category_ids test_123,2,5,12 thanks
1
vote
2answers
105 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
27 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
19 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
1answer
1k 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
224 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
505 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
300 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
653 views

Get array of all active category ID's

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