Hi i have requirement like that i have to send selected items form the cart to checkout page then need to do payment for those selected items . I have implemented the functionality to send the selected item to the checkout page.But the problem is that total amount of selected items is not changed in the checkout page as it remains same as the total amount calculated for all the available product in cart.This happens cause every where we are using
method for getting the order
discreteOrderItems object in different-2 method and i am bound to let them as it is cause it can impact other functionality also.
For sending the selected item to checkout i am manipulating the order Object retrieve from the
. But checkout controller is calling too many times from different-different controller so whatever manipulation i have done in order Object is lost every time.So please tell me the proper way of doing it so the changes in order object can be found despite of landing to checkout contoller from any other controller using redirect strategy or anything else.
Also i don't want to delete anything from cart until and unless payment confirmation is not coming.Once the selected item payment is confirmed then i have to remove the selected items from cart.