Hi,
You need to create a hook (see developer docs) for a product entity type and check whether category is changed.
$entity->isAttributeChanged('categoryId').
Trigger update on entity when adding a related entity
Collapse
X

Leave a comment: