What event to subscribe to

Hello,
I just wonder what event I should subscribe to to get a signal that a variant has been published. I have the following two so far and they take care of the rest, however if I save on ‘Publishing’ I don’t get any notifications…

        _eventBroker.Subscribe<VariantUpdated>(VariantUpdated);
        _eventBroker.Subscribe<VariantCreated>(VariantCreated);

Thanks

:slight_smile: Philippe

Litium version: 5.6.8

Try subscribing to the event VariantToWebSiteLinkAdded.

(There’s a corresponding VariantToWebSiteLinkRemoved as well.)

Thanks, I will try :smiley:

It worked perfectly.

        _eventBroker.Subscribe<VariantUpdated>(VariantUpdated);
        _eventBroker.Subscribe<VariantCreated>(VariantCreated);
        _eventBroker.Subscribe<VariantToWebSiteLinkAdded>(VariantPublished);
        _eventBroker.Subscribe<VariantToWebSiteLinkRemoved>(VariantUnpublished);

Thanks :smiley:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.