$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();$order = Mage::getSingleton('sales/order')->loadByIncrementId($orderId);
echo "order subtotal: ".$order->getSubtotal()."<br>";echo "shipping: ".$order->getShippingAmount()."<br>";echo "discount: ".$order->getDiscountAmount()."<br>";echo "tax: ".$order->getTaxAmount()."<br>";echo "grand total".$order->getGrandTotal()."<br><br><br>";
No comments:
Post a Comment