Hi guys,
I have to build some logic based on a notification when saving a ProductGroup.
I am using Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.AfterSave
The problem I have is that I need to do different things depending on the Level of the Group. If it's TopLevel (directly in the root of the shop) I need to trigger an action while if it's a secondary level, I need to trigger another action.
After a while of digging around the options, I could not find a way to separate the 2. Can anybody suggest a way to identify the level of the Group? or at least if it's a top level group or not?
Thank you,
Adrian