On the success page after the order is displayed, I want to display a summary. For this I use this code.
I want to display the product image also. How can I achieve that?
And how do I display the summary, with tax and grand total?
<?php
$order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$order_details = Mage::getModel('sales/order')->loadByIncrementId($order_id);
$shipping_address_data = $order_details->getShippingAddress();
?>
<table>
<tr>
<th><?php echo $this->__('Description') ?></th
<th><?php echo $this->__('Description') ?></th>
<th><?php echo $this->__('Qty') ?></th>
<th><?php echo $this->__('Unit Price') ?></th>
</tr>
<?php foreach($order_details->getAllVisibleItems() as $item): ?>
<tr>
<td><?php echo $item->getSmallImageUrl(); ?></td>
<td><?php echo $item->getName() ?></td>
<td><?php echo round($item->getQtyOrdered(), 0) ?></td>
<td><?php echo Mage::helper("core")->currency($item->getPrice()) ?></td>
</tr>
</table>
<?php endforeach ?>
<?php echo "<br>" . $shipping_address_data['country_name']; ?>