title: WooCommerce display price on add to cart button
body: <p>I'm trying to add the price to the add to cart button in the loop.</p>
  
  <p>[100$ Add to cart] instead of [Add to cart]</p>
  
  <p><strong>add_to_cart.php template:</strong></p>
  
  <pre><code>echo apply_filters( 'woocommerce_loop_add_to_cart_link',
      sprintf( '&lt;a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="tiny button %s product_type_%s"&gt;%s&lt;/a&gt;',
          esc_url( $product-&gt;add_to_cart_url() ),
          esc_attr( $product-&gt;id ),
          esc_attr( $product-&gt;get_sku() ),
          $product-&gt;is_purchasable() &amp;&amp; $product-&gt;is_in_stock() ? 'add_to_cart_button' : '',
          esc_attr( $product-&gt;product_type ),
          esc_html( $product-&gt;add_to_cart_text() )
      ),
  $product );
  </code></pre>
  
  <p><strong>price.php template:</strong> </p>
  
  <pre><code>&lt;?php if ( $price_html = $product-&gt;get_price_html() ) : ?&gt;
      &lt;span class="price"&gt;&lt;?php echo $price_html; ?&gt;&lt;/span&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>How do I combine these two? Couldn't find anything on the web.</p>