title: How to display shopping cart information in Wordpress / WooCommerce
body: <p>I am using woocommerce and wordpress for an e-commerce website. I want to be able to display the number of items and total price in a user's cart anywhere on the page.  </p>
  
  <p>Normally  -- and if you use one of the woo themes -- this shows up in the menu navigation bar.  However, I am using an almost completely blank theme, and I do not know how I can get the item / price total information and display it in html.  Their documentation gives this snippet: <br> <a href="http://docs.woothemes.com/document/show-cart-contents-total/" rel="nofollow">http://docs.woothemes.com/document/show-cart-contents-total/</a></p>
  
  <pre><code>&lt;?php global $woocommerce; ?&gt;
  &lt;a class="cart-contents" href="&lt;?php echo $woocommerce-&gt;cart-&gt;get_cart_url(); ?&gt;" title="&lt;?php _e('View your shopping cart', 'woothemes'); ?&gt;"&gt;&lt;?php echo sprintf(_n('%d item', '%d items', $woocommerce-&gt;cart-&gt;cart_contents_count, 'woothemes'), $woocommerce-&gt;cart-&gt;cart_contents_count);?&gt; - &lt;?php echo $woocommerce-&gt;cart-&gt;get_cart_total(); ?&gt;&lt;/a&gt;`&lt;br&gt;
  </code></pre>
  
  <p>But I do not understand what HTML tag or class I would use to make that display.  What sort of element and class id would I need to use to make this appear?</p>