Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created August 14, 2013 17:42
Show Gist options
  • Save deivisonarthur/6233519 to your computer and use it in GitHub Desktop.
Save deivisonarthur/6233519 to your computer and use it in GitHub Desktop.
$order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
$price = $order->getGrandTotal();
$frete = $order->getShippingAmount();
$subtotalDireto = $order->getSubtotal();
echo "Subtotal: R$ ".number_format($subtotalDireto, 2, ',', '');
echo " - Frete: R$ ".number_format($frete, 2, ',', '');
echo " - Total: R$ ".number_format($price, 2, ',', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment