Public Member Functions | |
fetchTotals (Mage_Sales_Model_Quote_Address $address) |
Definition at line 28 of file Custbalance.php.
fetchTotals | ( | Mage_Sales_Model_Quote_Address $ | address | ) |
Reimplemented from Mage_Sales_Model_Entity_Quote_Address_Attribute_Frontend.
Definition at line 31 of file Custbalance.php.
00032 { 00033 $custbalance = $address->getCustbalanceAmount(); 00034 if ($custbalance!=0) { 00035 $address->addTotal(array( 00036 'code'=>'custbalance', 00037 'title'=>Mage::helper('sales')->__('Store Credit'), 00038 'value'=>-$custbalance 00039 )); 00040 } 00041 return $this; 00042 }