<?php $orders = $this->getOrders(); ?>
<div class="dashboard_section dashboard_section--orders" id="orders">
<div class="heading-group">
<h2><?php echo $this->__('Recent Orders'); ?></h2>
<?php if (sizeof($orders->getItems()) > 0): ?>
<a class="button button--s" href="<?php echo $this->getUrl('sales/order/history'); ?>"><?php echo $this->__('View All'); ?></a>
<?php endif; ?>
</div>
<?php if ( sizeof($orders->getItems()) > 0 ): ?>
<div class="scroll-x" data-scroll-x="600">
<div class="scroll-x_liner">
<table class="table recent-orders-table">
<thead>
<tr>
<th><?php echo $this->__('Date'); ?></th>
<th><?php echo $this->__('Status'); ?></th>
<th><?php echo $this->__('Total'); ?></th>
<th><?php echo $this->__('Order #'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($orders as $order): ?>
<tr>
<td><?php echo $this->formatDate($order->getCreatedAtStoreDate(), 'medium'); ?></td>
<td><?php echo $order->getStatusLabel(); ?></td>
<td><?php echo $order->formatPrice($order->getGrandTotal()); ?></td>
<td>
<a href="<?php echo $this->getViewUrl($order); ?>"><?php echo $order->getRealOrderId(); ?> - View</a>
<a class="button button--wide" href="#">Track Package</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
Currently I am getting order details by date, but I also need products with name,size,color, price,image inside the table . How can I get this?