1 Reply Latest reply on Sep 9, 2013 7:17 PM by Gopinath Ramasamy

    Empty Basket




      I have one requirement : To remove all items from basket.

      cartModiferFormhandler have any method for this functionality or not?


      Otherwise how it will implement?




        • 1. Re: Empty Basket
          Gopinath Ramasamy



          CartModifierFormHandler has a String array removalCommerceIds which you need to set with the ids of commerce items that you want to remove, in your case, with ids of all the items in your order.


          Then call handleRemoveItemFromOrder method which in turn calls deleteItems method to remove the commerce items from the order.


          Please refer the below link for more details about these methods.

          Oracle ATG Web Commerce - Understanding the CartModifierFormHandler


          Hope this helps.

          Keep posting the updates / questions.


          ( This is one functionality that no ecommerce site is willing to provide :-))



          Gopinath Ramasamy