Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Get PromotionData from the PromotionInformation class

$
0
0

Hello

A bit of context: I created a custom promotion adding only a new property (Display name) so that I could display a localized text on my order summary. 

Now, when I fetch my promotions applied to my order (order.GetFirstForm().Promotions) I get a list of PromotionInformation

For each PromotionInformation I need to get my new property so that I can display the localized text. I noticed there is an extension EPiServer.Commerce.Marketing.PromotionInformationExtensions.GetPromotion where I can get it, but all methods on this extension are obsolete.

Is there a reason to not use a content loader to get the PromotionData? If so, how could I get my property from a PromotionInformation

(for now I'm using the content loader, I'm jsut curious to know why is it obsolete and if there is a better approach to what I need)

Thanks!


Viewing all articles
Browse latest Browse all 6894

Trending Articles