How to display Woocommerce category description

I have the regular wordpress code to display category description:

<?php echo category_description( $category_id ); ?>

But how can i display Woocommerce category description?
@@
After one of the comment suggestion i added:

Read More
                    <?php 
    if ( have_posts() ) {
        while ( have_posts() ) {
            the_post(); 
global $post, $product; $categ = $product->get_categories(); $term = get_term_by ( 'name' , strip_tags($categ), 'product_cat' ); echo $term->description; 
        } // end while
    } // end if
?>

Still, not work.

Related posts

Leave a Reply

4 comments

  1. $args = array( 'taxonomy' => 'product_cat' );
    $terms = get_terms('product_cat', $args);
    
    $count = count($terms); 
    if ($count > 0) {
    
       foreach ($terms as $term) {
            echo $term->description;
       }
    }
    

    Edit for Last answer:

    <?php
    global $post;
    $args  = array(
        'taxonomy' => 'product_cat'
    );
    $terms = wp_get_post_terms($post->ID, 'product_cat', $args);
    
    $count = count($terms);
    if ($count > 0) {
    
        foreach ($terms as $term) {
            echo '<div style="direction:rtl;">';
            echo $term->description;
            echo '</div>';
    
        }
    }
    
  2. You can display the product category description

    use this code –

    <?php global $post, $product;
    $categ = $product->get_categories();
    $term = get_term_by ( 'name' , strip_tags($categ), 'product_cat' );
    echo $term->description; ?>