title: Woocommerce: Get the chosen attribute from item in cart
body: <p>In the cart, i get a variation_id for all my variable products. </p>
  
  <p>Is it possible to get the choosen attribute from that id in any way?</p>
  
  <p>I have tried: </p>
  
  <pre><code>&lt;?php $variation = new WC_Product_Variation($cart_item[variation_id]);?&gt;
  
  &lt;?php foreach($variation-&gt;get_variation_attributes() as $name =&gt; $attr): ?&gt;
      &lt;?php $name = substr($name, 10); //remove attribute_ from the key. ?&gt;
  
      &lt;?php echo $variation-&gt;get_attribute($name); ?&gt;
  
  &lt;?php endforeach; ?&gt;
  </code></pre>
  
  <p>but that only outputs ALL available attributes for that variation, not the chosen one. </p>
  
  <p>It feels like i am missing something obvious here, so any pointes in the correct direction would be lovely. </p>