Skip to content

Instantly share code, notes, and snippets.

@DaedalusX
Created June 10, 2014 19:17
Show Gist options
  • Save DaedalusX/b2b8b2bdfcb2a5e925c9 to your computer and use it in GitHub Desktop.
Save DaedalusX/b2b8b2bdfcb2a5e925c9 to your computer and use it in GitHub Desktop.
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