Try our conversational search powered by Generative AI!

Add redemptions to promotion


Is there a way to add redemptions to a Promotion from code? Have a system where promotions are shared and need to add redemptions "manually" from a scheduled job.



Dec 16, 2021 9:28


                promotion.RedemptionLimits.PerPromotion = int.MaxValue;
                promotion.RedemptionLimits.PerCustomer = int.MaxValue;
                promotion.RedemptionLimits.PerOrderForm = 2;

Dec 16, 2021 9:34

Doesn't that just set the redemption limits? I need to add redemptions to a promotion not change the redemption limits.

Dec 16, 2021 9:50

I see, then in that case, no. PromotionInformation which is used to determine the redemption is tie to a specific order form, you will gonna mess that order form promotion up if you add more entries to it.

You can, in theory, write your own RedemptionLimitService to return how many redemptions left for a specific order, other than its actually recorded number. However I don't know how your promotions are shared, so it could be tricky. 

Dec 16, 2021 11:14
* 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.