title: Adding Woocommerce Add to Cart Button to related products and product listing
body: <p>I'm having some difficulty in adding additional stuffs to WooCommerce as I'm still new to it. I'm trying to add an 'add to cart' button to related products and product listing. </p>
  
  <p>Was running through the codes and got stuck at the below.  </p>
  
  <pre><code>&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;
  
          &lt;?php
              /**
               * woocommerce_before_shop_loop_item_title hook
               *
               * @hooked woocommerce_show_product_loop_sale_flash - 10
               * @hooked woocommerce_template_loop_product_thumbnail - 10
               */
              do_action( 'woocommerce_before_shop_loop_item_title' );
          ?&gt;
  
          &lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;
  
          &lt;?php
              /**
               * woocommerce_after_shop_loop_item_title hook
               *
               * @hooked woocommerce_template_loop_price - 10
               */
              do_action( 'woocommerce_after_shop_loop_item_title' );
          ?&gt;
  
      &lt;/a&gt;
  
      &lt;?php do_action( 'woocommerce_after_shop_loop_item' ); ?&gt;  
  </code></pre>
  
  <p>Hope someone can guide me on how to add the button. Thanks in advance.</p>