A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hi,
I am using commerce 12.15.0, I have a requirment to exclude certain items from all line item promotions. My approach is to override the GetLineItems method in the EntryPromotionProcessorBase abstract class. This way I can add my exclusion logic in one place, and since all entry promotions use this processor they should automatically filter the line items. But now I have a problem, EntryPromotionProcessorBase being an abstract class, I need to implement Evaluate and GetPromotionItems method. But if I do this in the processor it would apply to all line items promotions right? And then all the different types of promotions would not be of any use. Below is my code, I need help to create a generic processor which can be used by all entry promotions.