title: Magento Checkout : Get Subtotal Value without iterating
body: <pre><code>&lt;?php
  foreach($this-&gt;getTotals() as $total)
  {
      if ($total-&gt;getCode() == 'subtotal')
      {
          $subtotal = $total-&gt;getValue();
          break;
      }
  }
  echo $subtotal;
  ?&gt;
  </code></pre>
  
  <p>Any way to get subtotal directly ?</p>