title: Subtotal less coupons/discounts on order confirmation page of Magento
body: <p>On the Order Confirmation page of Magento 1.5 (using the template , I have the a number of analytics conversion code scripts (like Google AdWords Conversion tracking). </p>
  
  <p>The code that is currently used to get the subtotal is</p>
  
  <pre><code>&lt;?php $order_id = Mage::getSingleton('checkout/session')-&gt;getLastRealOrderId(); ?&gt;
  &lt;?php $order_details = Mage::getModel('sales/order')-&gt;loadByIncrementId($order_id); ?&gt;
  &lt;?php $subtotal = $order_details-&gt;subtotal; ?&gt;
  </code></pre>
  
  <p>And then the $subtotal variable is used throughout. The problem is that this is the subtotal BEFORE any coupons or discounts are applied. I need it to be the total AFTER coupons or discounts. </p>
  
  <p>Can anyone help me with the code to get at that value?</p>