title: WooCommerce: Show stock status on cart page
body: <p>I want to show the stock status for every product in cart with the status &quot;few in stock&quot;.</p>
  <p>Like this:</p>
  <blockquote>
  <p><strong>Productname</strong></p>
  <p>Size: L</p>
  <p>Only 4 left  <em>&lt;- this is new</em></p>
  </blockquote>
  <p>I found a snippet to show the stock status on shop pages:</p>
  <pre><code>add_action( 'woocommerce_after_shop_loop_item', 'bbloomer_show_stock_shop', 10 );
  
  function bbloomer_show_stock_shop() {
     global $product;
     echo wc_get_stock_html( $product );
  }
  </code></pre>
  <p>Source: <a href="https://businessbloomer.com/woocommerce-add-stock-quantity-on-shop-page/" rel="nofollow noreferrer">https://businessbloomer.com/woocommerce-add-stock-quantity-on-shop-page/</a></p>
  <p>I tried to change the hook from <code>woocommerce_after_shop_loop_item</code> to <code>woocommerce_after_cart_item_name</code> to display the status below the title in the cart.
  But the snippet doesn't work.</p>
  <p>Also I have no idea how to limit it to items with a low stock.</p>