Page 1 of 1

Princing Issue

Posted: Fri Aug 21, 2015 2:52 am
by Shanky
Hi,

I have implemented adding sub-products for a product. I have written my custom code to add it into the discreteOrderItem as list of sub-products. The item also has his price added. Now I want that this price must be added while calculating the order price as well as added to the subtotal on cart page. I have found that one way to add to totals is to create a activity that adds the amount to the total. Is it correct approach? Also I am unable to find where the subtotals calculation is present in the code. Can someone please help?

Re: Princing Issue

Posted: Tue Sep 15, 2015 8:03 am
by phillipuniverse
The better implementation would probably be to add childOrderItems to your OrderItemRequestDTO. This sets up each child item as a dependent item on the parent, so nice things happen like if you remove the parent from the order then all child items also get removed.