Monday, 15 June 2015

programmatically get the shipping tax by order increment id in magento

$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();

No comments:

Post a Comment