'ECommerce_Cart_'), array('type' => 'default'), 'url'); $this->addColumn('no', 'no'); $this->addColumn( 'enum', 'cartItemType', array( 'title' => 'Item Type', 'values' => array( \App_ECommerce_Cart_View::ITEM_TYPE_EVENT => 'Event', \App_ECommerce_Cart_View::ITEM_TYPE_SPONSOR => 'Sponsorship', ), ) ); $this->addColumn('text', 'title'); if (\App_ECommerce_Cart_Obj::isEventAtCart()) { $this->addColumn( 'attendees', 'attendees', array( 'eventType' => \App_ECommerce_Cart_View::ITEM_TYPE_EVENT, 'title' => 'Attendees' ) ); } $this->addColumn( 'price', 'price', array( 'eventType' => \App_ECommerce_Cart_View::ITEM_TYPE_EVENT, 'title' => 'Price' ) ); $this->addColumn('money', 'paymentFee', array('title' => 'Fee')); $promoObj = new App_ECommerce_Promo_Admin_Obj(); $this->addColumn( 'summary', 'summary', array( 'title' => 'Summary', 'promoTypes' => $promoObj->getDPromoType4Select(), ) ); $this->addColumn( 'options', 'options', array( 'actions' => array( 'delete' => array( 'formattedLink' => $cartUrl . '?action=removeItem&itemId=%d', 'title' => 'Delete' ), ) ) ); return $this; } }