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 credited when an item is returned.
More thoughts are welcome here!

Thanks & Regards,
Devanshu Vyas.


On Wed, Feb 27, 2019 at 7:24 PM Suraj Khurana <suraj.khur...@hotwax.co>
wrote:

> 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 which other order items.
>
> I think this is not maintained yet in any other form as well, please let me
> know am I missing something?
> Any thoughts are welcome in this direction !!
>
> Thanks in advance.
>
> --
> Best Regards,
> Suraj Khurana
> TECHNICAL CONSULTANT
> mobile: +91 9669750002
> email: suraj.khur...@hotwax.co
> www.hotwax.co
>

Reply via email to