The information of applied discounts are stored in IOrderForm.Promotions. Here you can get the information about the promotions applied and the amounts saved. So if you have an order, just access its .Forms (normally you only have one form so)
We have custom promotions with custom fields. How can I access the data on these custom fields from the order form like you showed?
Either store it in AdditionalInformation in the PromotionInformation or load the promotion object and read it from there. Downside is that if you load the promotion and read it in real time you can't really use it on purchaseOrders, since they should always have a snapshot of the promotion data that was applied.
Thanks Joel, could you point me in the right direction to load up the promotion object?
Promotions are IContent, just use the content loader to load them from the PromotionInformation.ContentLink :)
Ah, I did not realize that. Thanks!
Request you to provide me the instructions to retrieve the promotions/discounts applied on a purchase order.
I am using the below code
_promotionEngine.Run(purchaseOrder, new PromotionEngineSettings(RequestFulfillmentStatus.Fulfilled, true))
However I am unable to get the reward information of the expired discounts .
EPiServer Version :10.2
Venkata Phani kumar R