Short information about my environment:

  1. Sitecore 8.2.1
  2. Sitecore Commerce 8.2.0 (Initial Release)


I need to implement a custom condition for promotions. I need to get information regarding the parents of a product (from a shopping cart) in this context. I tried to find the solution and found at least 2 ways to get these data.

  1. Use CatalogItemBase class like in was proposed in this thread. I tried to use a similar code, but it looks like I don't have this class in my Sitecore.Commerce.Plugin.Catalog dll (too old version?).
    var source = await this._findEntityPipeline.Run(new FindEntityArgument(typeof(CatalogItemBase), arg.SourceName, false), context) as CatalogItemBase;
  1. Get SellableItem from the context. I can see all the required products (which are included in the cart), however, they don't have any fields/ components which include information regarding parent items.

Do you know how to get this type of relations? Thank you in advance for the help.

1 Answer 1


Check this: https://www.xcentium.com/blog/2019/03/26/sxc-bizfx---sellableitem-parent-categories-view

It's for Commerce 9 but you can adapt it for 8.2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.