title: having trouble getting the subtotal from the cart in magento?
body: <p>I am trying to get the subtotal from the cart using the code </p>
  
  <pre><code>&lt;?php echo Mage::helper('checkout/cart')-&gt;getQuote()-&gt;getSubtotal(); ?&gt;
  </code></pre>
  
  <p>It only works when i clean the cache, i don't know why. how to get the subtotal in a correct way? . Any help will be greatly appreciated.</p>
  
  <p>Thank you in advance</p>