Skip to content

Instantly share code, notes, and snippets.

@mcjwsk
Created July 21, 2015 08:43
Show Gist options
  • Save mcjwsk/c4bda8e2cd0c58b03719 to your computer and use it in GitHub Desktop.
Save mcjwsk/c4bda8e2cd0c58b03719 to your computer and use it in GitHub Desktop.
<?php
$order = Mage::getModel('sales/order')->loadByIncrementId("increment_id");
//shipping cost
$shippingCost = $order->getShippingAmount();
//shipping cost in base currency
$shippingBaseCost = $order->getBaseShippingAmount();
//shipping tax
$shippingTax = $order->getShippingTaxAmount();
//shipping tax in base currenty
$shippingBaseTax = $order->getBaseShippingTaxAmount();
//shipping cost including tax
$shippingCostIncludingTax = $order->getShippingInclTax();
//shipping cost including tax in base currency
$shippingBaseCostIncludingTax = $order->getBaseShippingInclTax();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment