title: How do I access the current order id in opencart?
body: <p>How do I access the current order id in opencart and put it in a variable? I am working in a new file, which did not come with the standard opencart install.</p>
  
  <p>The closest I have been able to get is the following code, which doesn't work:</p>
  
  <pre><code>&lt;?php
  session_start();
  $order_id = $this-&gt;session-&gt;data['order_id'];
  ?&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>