title: echo woocommerce stock quantity of a particular product id
body: <p>As the title says, how do i echo the stock quantity of a particular product id? Let's say the product id is "1100" and i want the stock quantity to appear in a page that is not part of the product archive. Is that possible? </p>
  
  <p>For example, in an empty page, it should appear as </p>
  
  <p>"Product A leftover stock: 10"</p>
  
  <p>I am just learning to code and have come up with the following, but no result appear:</p>
  
  <pre><code>function nntest(){
      global $woocommerce;
      global $product;
      $product_id = 1100;
      echo $product-&gt;get_stock_quantity();
  }
  </code></pre>
  
  <p>Thanks!</p>