Re: Buy one get one promotion improvement

2019-03-11 Thread Rishi Solanki
+1 Devanshu, and for the specific buy one get one maintaining the OrderItemAssoc not making sense. We can use OrderItem.isPromo, OrderAdjustment, ProductPromoUse and ProductPromo relationship to identify the free product. And if we are not able to identify the free product then we should go for

Re: Buy one get one promotion improvement

2019-03-10 Thread Devanshu Vyas
Hello Suraj, You have presented a good solution but IMHO maintaining OrderItemAssoc records wouldn't work in all the cases. I mean what would happen if there is a Buy 3 Get 1 promotion? I would recommend to Prorate the discount while order creation and the same discounted amount should be

Buy one get one promotion improvement

2019-02-27 Thread Suraj Khurana
Hello, While applying any BOGOF promo in OOTB, free item is added into order item with field isPromo set to Y. It might be possible that there are other items in the order as well. IMO, we need to have order item assoc maintained as well, in this case, to find out this free item is available with