Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Manual promotions ignore the PromotionEngineSettings

Vote:
 

When doing some debugging in a previous thread, I tried to understand a bit more on how/where the values of the discounts actually are applied to the lineitems.

This is by some extent modified by the PromotionEngineSettings, since you can set ApplyReward to true or false. True will have the calculated discount prices applied to the lineitems, where as False will just give you which rewardDescriptions that would've applied. 

However, since manual promotions are handled outside of the promotionengine context, setting PromotionEngineSettings.ApplyReward = false won't change if it's actually applied or not.

I don't know if this is a bug or not though. Manual promotions are basically PromotionInformation objects with Type=Manual that you add to the orderForm.Promotions collection prior to running cart.ApplyDiscounts(). So it's not really within the promotion engine, but it still feels a bit hidden that all the manual promotions will be applied, whereas the calculated promotions will not be applied.

Thoughts on this? :)

#185698
Edited, Nov 30, 2017 6:39
* 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.