Example #1
0
 /**
  * get Total Point that customer used to spent for the order
  * 
  * @return int
  */
 public function getTotalPointSpent()
 {
     $container = new Varien_Object(array('total_point_spent' => 0));
     Mage::dispatchEvent('rewardpoints_calculation_spending_get_total_point', array('container' => $container));
     return $this->getPointItemSpent() + $this->getCheckedRulePoint() + $this->getSliderRulePoint() + $container->getTotalPointSpent();
 }