WooCommerce: Display also product variation description on cart items
<p>I'm trying to display my <strong>product variation description</strong> in my Cart. I have tried inserting this code in the <strong><code>cart.php</code></strong> template:</p>
<pre><code>if ( $_product-&gt;is_type( 'variation' ) ) {echo $_product-&gt;get_variation_description();}
</code></pre>
<p>By following this documentation <a href="https://docs.woocommerce.com/document/template-structure/" rel="nofollow noreferrer">https://docs.woocommerce.com/document/template-structure/</a></p>
<p>But it's still not showing up.</p>
<p>Not sure what I'm doing wrong here.</p>
<p>Can anyone help on this?</p>