Hi All,
I am implementing Dynamicweb API for mobile. I set the voucher code in order and save the order.
myOrder.VoucherCode = voucherCode;
orderService.Save(myOrder);
The voucher code is applied in order but the price doesn't effect.
One time set the voucher code from website, then I try to set/remove voucher code from API call on that order. It is reflecting on price.
In my retrieving order obj codes, I add below function
orderService.RemoveOrderCache(orderId);
orderService.ClearCachedPrices(myOrder);
orderService.CalculateDiscounts(myOrder);
orderService.ForcePriceRecalculation(myOrder);
My question is; is there any flag or service to calculate the price with voucher code?
Regards,
Zayar Minn