prestashop-specs icon indicating copy to clipboard operation
prestashop-specs copied to clipboard

Delete main category of product, product should be reassigned another main category

Open arouiadib opened this issue 3 years ago • 0 comments

(Special thanks to @marionf, @matks, @Julievrz who already contributed to this VERY important matter. The issue hugely affects how products are browsed by categories in FO).

What happens to the default category of a product P associated to category C when C is deleted and C is default category of P?

When merchant deletes category and chooses one of the two first options in modal (doesn't choose to delete associated products) THEN associate P to the parent category and set parent category as default.

some cases:

case 1

case 2 1

Behavior tests here: https://github.com/PrestaShop/PrestaShop/pull/24668

arouiadib avatar Jun 11 '21 15:06 arouiadib