예제 #1
0
 protected function _afterLoadCollection()
 {
     $totalObj = new Mage_Reports_Model_Totals();
     $this->setTotals($totalObj->countTotals($this));
 }
예제 #2
0
 public function getReport($from, $to)
 {
     if ($from == '') {
         $from = $this->getFilter('report_from');
     }
     if ($to == '') {
         $to = $this->getFilter('report_to');
     }
     $totalObj = new Mage_Reports_Model_Totals();
     $this->setTotals($totalObj->countTotals($this, $from, $to));
     $this->addGrandTotals($this->getTotals());
     return $this->getCollection()->getReport($from, $to);
 }