PromotionTypeHandler.DisablePromotions and DisableBuiltinPromotions no longer works after upgradering to version:

Simen Øvergaard
Member since: 2008

As topic says. Neither DisablePromotions or DisableBuiltinPromotions works after upgrading to EPiServer.Business.Commerce

Feb 05, 2019 16:45
Quan Mai
Member since: 2011

That is strange. I guess you call DisableBuiltinPromotions and still see them? How do you call the code?

Feb 05, 2019 19:52
Simen Øvergaard
Member since: 2008

Greeting Quan

My error was module dependancy in my initializer. It was probably changed when the site was upgraded. EPiServer.Commerce.Initialization.InitializationModule was overriding my calls to DisablePromotions  and DisableBuiltinPromotions. With proper dependancy everything works as expected.

Feb 06, 2019 12:35