Public Member Functions | |
fetchTotals (Mage_Sales_Model_Quote_Address $address) |
Definition at line 28 of file Giftcert.php.
fetchTotals | ( | Mage_Sales_Model_Quote_Address $ | address | ) |
Reimplemented from Mage_Sales_Model_Entity_Quote_Address_Attribute_Frontend.
Definition at line 31 of file Giftcert.php.
00032 { 00033 $amount = $address->getGiftcertAmount(); 00034 if ($amount) { 00035 $address->addTotal(array('code'=>'giftcert', 'title'=>Mage::helper('giftcert')->__('Gift Certificate').' ('.$address->getGiftcertCode().')', 'value'=>-$amount, 'output'=>true)); 00036 } 00037 return $this; 00038 }