title: Magento checkout success page: get some order information
body: <p>I need some basic information on my Magento checkout success page to check some conversions through my shop. For that I need the total price of the order and all article IDs.</p>
  
  <p>While searching I found a code to get the last order:</p>
  
  <pre><code>&lt;?php
      $_customerId = Mage::getSingleton('customer/session')-&gt;getCustomerId();
      $lastOrderId = Mage::getSingleton('checkout/session')-&gt;getLastOrderId();
      $order = Mage::getSingleton('sales/order'); 
      $order-&gt;load($lastOrderId);
  ?&gt;
  </code></pre>
  
  <p>But how can I get the total price and all article IDs (seperated by ,).</p>
  
  <p>I'm quiet new to Magento, so everything is a bit confusing to me.</p>
  
  <p>Can somebody help me?</p>
  
  <p>Thank you.</p>
  
  <p>Greetings from Germany,
  Raisis</p>