This discussion is archived
1 Reply Latest reply: Sep 9, 2013 12:17 PM by GopinathRamasamy RSS

Empty Basket

pveedu1 Newbie
Currently Being Moderated



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
    GopinathRamasamy Journeyer
    Currently Being Moderated



    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


  • Correct Answers - 10 points
  • Helpful Answers - 5 points