Created
June 10, 2014 19:17
-
-
Save DaedalusX/b2b8b2bdfcb2a5e925c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getShippingAddressTotals($address) | |
{ | |
$totals = $address->getTotals(); | |
foreach ($totals as $total) { | |
if ($total->getCode()=='grand_total') { | |
if ($address->getAddressType() == Mage_Sales_Model_Quote_Address::TYPE_BILLING) { | |
$total->setTitle($this->__('Total')); | |
} | |
else { | |
$total->setTitle($this->__('Total for this address')); | |
} | |
} | |
} | |
return $totals; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment