*/ class Mage_Sales_Model_Resource_Quote_Address_Attribute_Frontend_Shipping extends Mage_Sales_Model_Resource_Quote_Address_Attribute_Frontend { /** * Fetch totals * * @param Mage_Sales_Model_Quote_Address $address * @return Mage_Sales_Model_Resource_Quote_Address_Attribute_Frontend_Shipping */ public function fetchTotals(Mage_Sales_Model_Quote_Address $address) { $amount = $address->getShippingAmount(); if ($amount != 0) { $title = Mage::helper('sales')->__('Shipping & Handling'); if ($address->getShippingDescription()) { $title .= sprintf(' (%s)', $address->getShippingDescription()); } $address->addTotal(array( 'code' => 'shipping', 'title' => $title, 'value' => $address->getShippingAmount() )); } return $this; } }