title: How to add an "add to cart" button in single-product.php page in woocommerce?
body: <p>I am using woocommerce to develop a ecommerce site</p>
  
  <p>In single-product.php I am facing a problem.</p>
  
  <p>I can't display the add to cart button under the product in this page.</p>
  
  <p>So far I am using this code:</p>
  
  <pre><code> &lt;?php 
      //global $post;
      echo do_shortcode('[add_to_cart id="$post-&gt;ID"]');
      ?&gt; 
  </code></pre>
  
  <p>But no luck for me yet!</p>