I'm in the process of coding an extension and I need to know the code to get the total amount. I tried these three code snippets, but none of them worked:
<?php echo $totalamout; ?>
<?php echo $total; ?>
<?php echo $total['text']; ?>
I also need the code for the model number of each item on the order.