Custom promotion event binding

Vote:
 

We have a custom filter block used in a custom EntryPromotion.  In the filter block we have 2 string fields where we can define skus included on this promo and brands included on this promo.  Our custom processors handle whether the promo will get fulfilled or not.  Is there a way to hook into the promo save event in the Commerce backend to change the sku values based on the entered brands?  For example, I'm removing BrandX.  OnSave, find all Skus that belong to BrandX and remove them from the Skus field and save.  thanks

#330518
Sep 25, 2024 17:38
Vote:
 

Promotions are CMS content so if you listen to IContentEvents.

    event EventHandler<ContentEventArgs> PublishedContent;
you can then filter by the content type and if it matches your promotion type, do your processing 
#330555
Sep 26, 2024 5:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.