Unhandled Error!

Trying to get property of non-object

Document Confirmation
Document type CMS page
Line 1
Exception class Cms_ExecutionException

Code Highlight

<? if ($order->status->code == 'paid') : ?>
	<div class="inner confirmation">
		<h3>Order Confirmation</h3>
		<p>Thank you for your order with id <?= $order->id ?> of <?= h($order->order_datetime->format('%x')) ?>, please review the details below:</p>
		<table class="simple_table price">
		  <thead>
		    <tr>
		      <th>Quantity</th>
		      <th>Item</th>
		      <th>Price</th>
		      <th>Total</th>
		    </tr>
		  </thead>
# Document Type
1 Confirmation CMS page