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

Promotion number of redemptions

$
0
0

Hi,

I'm looking for a way to fetch the current number of redeemed elements for a promotion, similarily to what is displayed when listing the different Campaigns in the admin-panel as displayed here (the Redemptions column) :Wanted functionality

I have tried with 

var redemptionImitator = ServiceLocator.Current.GetInstance<IRedemptionLimitService>();
var limitNumber = redemptionImitator.GetRemainingRedemptions(new List<PromotionData>() { PromotionDataElement }, cart.CustomerId, cart.GetFirstForm().OrderFormId);

but with no luck. The afformentioned approach always returns a { Count: 1 }.

Any help is greatly appreciated.


Viewing all articles
Browse latest Browse all 6894

Trending Articles