protected function _prepareData() { $this->setDataHelperName('affiliateplusstatistic/sales'); $this->getDataHelper()->setParam('store', $this->getRequest()->getParam('store')); $this->setDataRows('commissions'); $this->_axisMaps = array('x' => 'range', 'y' => 'commissions'); parent::_prepareData(); }
protected function _prepareData() { $this->setDataHelperName('affiliateplusstatistic/clicks'); if ($this->_getHelper()->getSharingConfig('balance') == 'store') { $this->getDataHelper()->setParam('store', Mage::app()->getStore()->getId()); } $this->setDataRows(array('uniques', 'clicks')); $this->_axisMaps = array('x' => 'range', 'y' => 'clicks'); parent::_prepareData(); }
protected function _prepareData() { $this->setDataHelperName('affiliateplusstatistic/sales'); $account = Mage::getSingleton('affiliateplus/session')->getAccount(); if ($this->_getHelper()->getSharingConfig('balance') == 'store') { $this->getDataHelper()->setParam('store', Mage::app()->getStore()->getId()); } $this->getDataHelper()->setParam('account_id', $account->getId()); $this->setDataRows('amount'); $this->_axisMaps = array('x' => 'range', 'y' => 'amount'); parent::_prepareData(); }