magento / magento/community-features

Can't able to update multiple same child category in different parent via CSV programmatically

Open
#207 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Priority: P3
Dominant language
No language data
Stars
46
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Magento 2 programtically import categories via CSV and re-importing via CSV but can't able to update child categories data as same categories of multiple parent.

Categories Example:

Default Category:
    -Mobile
        -Samsung
        -Sony
    -TV
        -Samsung
        -Sony
    -Device
        -Samsung
        -Sony

While re-importing categories via CSV only updating content of Mobile category child categories Samsung and Sony but not updated content of TV and Device child categories.

Preconditions (*)
  1. Magento 2.3.2
  2. Progrmatically Import categories via CSV
Steps to reproduce (*)
  1. Progrmatically import categories via CSV.
  2. Add same name child categories in different parent categories. category will created success.
  3. After update child categories data in CSV like description, is_active, etc. And re-import CSV.
  4. Only updating First same name child categories of parent. others same name category of child categories not updated.
Expected result (*)
  1. All the categories data should be updated successfully.
Actual result (*)
  1. Same name child categories data not updated. only updated first parent child categories of same name categories.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the CSV category import on Magento 2.3.2 using the example with repeated Samsung and Sony child names under Mobile, TV, and Device. Trace the category import path to determine how matching categories are selected during re-import. Done means description, is_active, and other CSV values update for every matching child category, not only the first.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.