Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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