London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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