Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

previous categories of product are not removed if i remove category in data, instead new categories are added to previous method #87

Open
ankit-sf opened this issue Sep 25, 2018 · 5 comments

Comments

@ankit-sf
Copy link

previous categories of product are not removed if I remove category in data, instead, new categories are added to the previous method.
i used Add/update method in firegento settings.

@jruzafa
Copy link

jruzafa commented Oct 2, 2018

In order to replace the categories assignation it is necessary to assign the "replace" behavior

@ankit-sf
Copy link
Author

ankit-sf commented Oct 9, 2018

@jruzafa i think is it related to magento/magento2#7930
But the truth is a normal user would not use "replace" behavior since it changes product ids.
Also, we cannot remove categories using "Add/update" behaviour. so that's why this awesome module is unusable for us.
how are other people using it? with "replace" behavior with changing product ids (losing order, statics, metric related data) or "Add/update" behavior with inability to remove categories.

@jruzafa
Copy link

jruzafa commented Oct 15, 2018

@ankit-sf

I also use the append always to prevent lose all relations with the product_id in other entities.

The solution we have applied is that before each import the product is removed from the categories to which it no longer belongs.

@ankit-sf
Copy link
Author

@jruzafa
ok, do you made some changes at Magento?
or how do you implement that. could you share some more insight?
like did you iterate products and removed categories before
$this->importerModel->processImport($productsArray)

@ghost
Copy link

ghost commented Oct 27, 2018

#SQUASHTOBERFEST

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants