RFC : Emit an event when products are added to a category #14223
adevinwild
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We should emit an event whenever products are added or removed from a product category. This will allow developers to subscribe to changes in product-category associations.
Current implementation
Currently, no events are emitted when products are linked to or unlinked from a product category.
Proposed implementation
We will emit a
ProductCategoryWorkflowEvents.UPDATEDevent upon the completion of thebatchLinkProductsToCategoryWorkflowThis enables developers to trigger downstream logic based on category updates, such as invalidating storefront cache for a specific category 👍
Link to PR : #14222
Beta Was this translation helpful? Give feedback.
All reactions