FireGento_FastSimpleImport2 icon indicating copy to clipboard operation
FireGento_FastSimpleImport2 copied to clipboard

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

Open ankit-sf opened this issue 7 years ago • 5 comments

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.

ankit-sf avatar Sep 25 '18 10:09 ankit-sf

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

jruzafa avatar Oct 02 '18 14:10 jruzafa

@jruzafa i think is it related to https://github.com/magento/magento2/issues/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.

ankit-sf avatar Oct 09 '18 08:10 ankit-sf

@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.

jruzafa avatar Oct 15 '18 08:10 jruzafa

@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)

ankit-sf avatar Oct 16 '18 11:10 ankit-sf

#SQUASHTOBERFEST

ghost avatar Oct 27 '18 06:10 ghost