Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
Last time I check, this should be enough
private IOrderGroup Reset(IOrderGroup order)
{
foreach (var form in order.Forms)
{
form.Promotions.Clear();
}
return order;
}
+1 from the one above. Don't forget to run promotions again, otherwise the prices won't be changed.
I have some custom logic when processing orders and I want to be able to remove promotions that have already been applied to an order.
When running the custom logic I apply discounts using purchaseOrder.ApplyDiscounts(new PromotionEngineSettings());
Is there a way to then remove any discounts that were applied?
Thanks