title: Not able to get get_term_link in product-attributes.php woocommerce
body: <p>I have the below code:</p>
  <pre><code>&lt;?php 
      $terms = get_the_terms( $post-&gt;ID, 'product_cat');
      foreach ($terms  as $term  ) {
          $product_cat_name .= $term-&gt;name . ', ';
      } 
  ?&gt;
      
      &lt;tr class=&quot;woocommerce-product-attributes-item woocommerce-product-attributes-item--&lt;?php echo esc_attr( $product_attribute_key ); ?&gt;&quot;&gt;
      &lt;th class=&quot;woocommerce-product-attributes-item__label&quot;&gt;&lt;?php esc_html_e( 'Category', 'webinweb'); ?&gt;&lt;/th&gt;
       &lt;td class=&quot;woocommerce-product-attributes-item__value&quot; &gt;&lt;?php echo '&lt;a href=&quot;'.get_term_link($term-&gt;slug, $term-&gt;taxonomy).'&quot;&gt;'.$product_cat_name.'&lt;/a&gt;'; ?&gt; &lt;/td&gt;
      &lt;tr&gt;
  </code></pre>
  <p>The link to each product-category is set by 'get_term_slug'. But this is always the same product-category link and not the product-category link for that product.</p>
  <p>What do I need to add to get this working?</p>