Skip to content

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

@arouiadib

Description

@arouiadib

(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: PrestaShop/PrestaShop#24668

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions