title: Woocommerce product-category-description on productpage
body: <p>I have a question regarding woocommerce and the product-pages. I want to output the text and pictures stored in the product category. </p>
  
  <p>For example, if the product is connected to the categories "electro" and "car", I want to output the text and pictures stored in the woocommerce-category description of "electro" and "cars".</p>
  
  <p>I used the following code, to get at least some information displayed, thats stored in the <code>functions.php</code> (like some text in the <code>listitem</code>)</p>
  
  <pre><code>add_action( 'woocommerce_single_product_summary', 'my_extra_button_on_product_page', 30 );
  
  function my_extra_button_on_product_page($category) {
      global $post;
      echo '&lt;ul class="myCat"&gt; ';
  
  if ( has_term( 'Cocktails', 'product_cat' ) ) {
  echo'
  Wird gerne genutz in Rezepten f&amp;uuml;r:&lt;br /&gt;
  &lt;li class="icon-glass2"&gt;1&lt;/li&gt;
  ';}
  elseif ( has_term( 'Dressings', 'product_cat' ) ) {
  echo'
  &lt;li&gt;2&lt;/li&gt;
  ';}
  if ( has_term( 'Limonaden', 'product_cat' ) ) {
  echo'
  &lt;li class="icon-glass2"&gt;3&lt;/li&gt;
  ';}
  elseif ( has_term( 'Kochen', 'product_cat' ) ) {
  echo'
  &lt;li class="icon-glass2"&gt;4&lt;/li&gt;
  ';} 
  elseif ( has_term( 'Backen', 'product_cat' ) ) {
  echo'
  &lt;i class="icon-glass2"&gt;5&lt;/i&gt;
  ';} 
  elseif (has_term ('shrub', 'product_cat')){echo 'shrub';}
   else {
  echo 'test';
  }echo '&lt;/ul&gt;&lt;br style="clear:both;" /&gt; ';}
  </code></pre>
  
  <p>There is however some code I found, but I dont know how to get it working with my code. </p>
  
  <pre><code>add_action( 'woocommerce_after_subcategory_title', 'custom_add_product_description', 12);
  
  function custom_add_product_description ($category) {
  $cat_id        =    $category-&gt;term_id;
  $prod_term    =    get_term($cat_id,'product_cat');
  $description=    $prod_term-&gt;description;
  
  echo '&lt;div&gt;'.$description.'&lt;/div&gt;';
  }
  </code></pre>
  
  <p>I would be happy, if someone could help me putting those together. </p>