Delete Category

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi, i want to know or understand the logic of delete a category and sub Category because in this file "CategoryService" in delete method

the parent category is updated to delete = true and all subcateries update ParentCategoryId = 0 and this update on subcatery loses the relation between father and childs relationg...

in my mind the correct way to change all child is updating the property to deleted = 0... i want to read your comments about this change..
6 years ago
nopCommerce is doing right.

If you are deleting parent category then of course child category need parent but you deleted So those child will be parent that's why they are updating with parentcategoryId=0.

If you want to change logic you can.

Thanks,
Jatin
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.