Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Reevaluating of promotions resets stored discount coupon code

$
0
0

Hi to all,

I've faced a problem with promotions reevaluating.

Seems that ReevaluatePromotions parameter resets the stored discount code (if it was setted as false - CouponCode is on place).

Is it possible to avoid such behavior? Of cource, I can get this CouponCode by Guid (since it is on place), but it doesn't looks like good solution.

Before reevaluating (field CouponCode is not empty):

After (field CouponCode is empty):

cart.ApplyDiscounts(new PromotionEngineSettings { ReevaluatePromotions = true });
cart.AcceptChanges();

Thanks


Viewing all articles
Browse latest Browse all 9076

Trending Articles