Beispiel #1
0
 /**
  * removes items from an existing session.
  *
  * @param Mage_Sales_Model_Quote $quoteObj
  * @param Mage_Checkout_Model_Cart $cartObj
  */
 public function dumpCartProduct($quoteObj, $cartObj)
 {
     //remove existing
     //$products = $quoteObj->getAllItems();
     $items = $cartObj->getItems();
     foreach ($items as $item) {
         $cartObj->removeItem($item->getId());
     }
 }