title: Get in WooCommerce cart the product ID of a cart item
body: <pre><code>$cart_item = $woocommerce-&gt;cart-&gt;get_cart(); 
  </code></pre>
  
  <p>I have the above code.</p>
  
  <p>if I run print_r on cart_item I get a multi dimensional array:</p>
  
  <pre><code>Array(    [a6292668b36ef412fa3c4102d1311a62] =&gt; Array        (            [product_id] =&gt; 6803
  </code></pre>
  
  <p>How do I get the product_id only?</p>
  
  <p>I tried $test = <code>$cart_item['data'];</code> </p>
  
  <pre><code>print_r($test);
  </code></pre>
  
  <p>Didn't work. </p>