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

Filter campaigns

Vote:
 

Hello!

We need filter campaigns to display only for current market, but I found that it doing via contentstructure request. I think it can doing in PromotionEngineContentLoader, but when I override this class, my implementation doesn't call. Have we option do it?

#339591
Jul 04, 2025 6:20
Vote:
 

I don't think the PromotionEngineContentLoader is called when listing the campaigns in the CMS UI. Technically those content types are stored as CMS content, not in the Commerce database.

The PromotionEngineContentLoader is used when loading campaigns and promotions during discount evaluation. And in that context it should automatically filter discounts on non-application markets.

#339601
Jul 06, 2025 5:17
Vote:
 

Hm, then we don't have options to change this list of campaigns? Maybe we can change UI part of this component to display campaigns of current target market?

#339603
Jul 06, 2025 5:36
* 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.