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?
Last time I check, this should be enough
private IOrderGroup Reset(IOrderGroup order)
foreach (var form in order.Forms)
+1 from the one above. Don't forget to run promotions again, otherwise the prices won't be changed.
Didn't realize it was that simple! Thanks!