title: How can I add subtotal and delivery details to the minicart menu in Woocommerce?
body: <p>In the minicart menu on my woocommerce site I've got it showing the products in the users cart, the total and the checkout button. I would also like the menu to show the subtotal and the delivery cost.
  The code to display the total is:</p>
  
  <pre><code>&lt;p class="total"&gt;&lt;strong&gt;&lt;?php _e( 'Total', 'woocommerce' ); ?&gt;:&lt;/strong&gt; &lt;?php echo WC()-&gt;cart-&gt;get_cart_total(); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Does anyone know how I can add the subtotal and the delivery (shipping) using woocommerce shortcodes? I've tried </p>
  
  <pre><code>&lt;p class="shipping"&gt;&lt;strong&gt;&lt;?php _e( 'Shipping', 'woocommerce' ); ?&gt;:&lt;/strong&gt; &lt;?php echo WC()-&gt;cart-&gt;get_cart_shipping(); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>But that doesn't actually work.
  Thank you in advance for any suggestions or answers!</p>