title: Get the cart item quantity by item id in Woocommerce
body: <p>In WooCommerce, I have created a mini cart and I want the get the item quantity available in the current cart.</p>
  
  <p>As i have tried this:</p>
  
  <pre><code>  $items = $woocommerce-&gt;cart-&gt;get_cart();
  
        foreach($items as $item =&gt; $values) {
            $product_id = $values['product_id'];
            if ( $product_id == $id ){
              $product_qnty = $values['quantity'];
            }
            break;
        }
  </code></pre>
  
  <p>Is there any single function to get the cart item quantity by cart item ?</p>