Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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