I am trying to add the order status under the order view similar to the information if the customer goes to My Account -> Recent Orders where they are given an order ID, Status, Location, Read Time, etc.
When you click the order ID you go to the order detailed information where I am attempting to add the order status.
Currently the code is (line 35 to 66);
<table class="table table-none">
<tr>
<td style="width:20%;"><b><?php echo lang('column_id'); ?>:</b></td>
<td><?php echo $order_id; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_date'); ?>:</b></td>
<td><?php echo $order_time; ?> - <?php echo $order_date; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_date_added'); ?>:</b></td>
<td><?php echo $date_added; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_order'); ?>:</b></td>
<td><?php echo ($order_type === '1') ? lang('text_delivery') : lang('text_collection'); ?></td>
</tr>
<?php if ($order_type === '1') { ?>
<tr>
<td><b><?php echo lang('column_delivery'); ?>:</b></td>
<td><?php echo $delivery_address; ?></td>
</tr>
<?php } ?>
<tr>
<td><b><?php echo lang('column_payment'); ?>:</b></td>
<td><?php echo $payment; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_location'); ?>:</b></td>
<td><?php echo $location_name; ?><br /><?php echo $location_address; ?></td>
</tr>
</table>
What I added is;
<tr>
<td><b><?php echo lang('column_status'); ?>:</b></td>
<td><?php echo $status_name; ?></td>
</tr>
to give;
<table class="table table-none">
<tr>
<td style="width:20%;"><b><?php echo lang('column_id'); ?>:</b></td>
<td><?php echo $order_id; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_status'); ?>:</b></td>
<td><?php echo $status_name; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_date'); ?>:</b></td>
<td><?php echo $order_time; ?> - <?php echo $order_date; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_date_added'); ?>:</b></td>
<td><?php echo $date_added; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_order'); ?>:</b></td>
<td><?php echo ($order_type === '1') ? lang('text_delivery') : lang('text_collection'); ?></td>
</tr>
<?php if ($order_type === '1') { ?>
<tr>
<td><b><?php echo lang('column_delivery'); ?>:</b></td>
<td><?php echo $delivery_address; ?></td>
</tr>
<?php } ?>
<tr>
<td><b><?php echo lang('column_payment'); ?>:</b></td>
<td><?php echo $payment; ?></td>
</tr>
<tr>
<td><b><?php echo lang('column_location'); ?>:</b></td>
<td><?php echo $location_name; ?><br /><?php echo $location_address; ?></td>
</tr>
</table>
The language for ''Status'' will go by fine but the order's status_name does not display.
Anyone know why this might be occuring?
Thank you.