Developer forum

Forum » Integration » recurring orders recalculation

recurring orders recalculation

Umar Farooq
Reply

Hi there,

We have a solution with a custom integration to ERP which controlling all the prices and discounts, also there is significant number of subscription/ recurring orders. Currently, if a recurring order is generated when no discount campaigns are active, then the future orders does not receive any discounts, even if a discount campaign is active at the time of processing and vice versa.

Are there any Notification services available which can be triggered before each of the recurring orders generated automatically at predefined interval? 

Thanks,

Umar


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Umar,
no, it seems there is no such a notification fired, but as an alternative you can try to use the notifications for the discounts calculations:
Notifications.Ecommerce.Discounts.BeforeDiscountCalculation
or a better one:
Notifications.Ecommerce.Discounts.AfterDiscountCalculation
And check if the order in the notification is recurring by:
if(!string.IsNullOrEmpty(order.RecurringOrderId))
And then check if the discounts were applied.

BR, Dmitrij

 

You must be logged in to post in the forum