<?php
global $post;
$args = array(
‘show_option_all’ => ”,
‘orderby’ => ‘name’,
‘order’ => ‘ASC’,
‘style’ => ‘list’,
‘show_count’ => 0,
‘hide_empty’ => 1,
‘use_desc_for_title’ => 1,
‘child_of’ => 0,
‘feed’ => ”,
‘feed_type’ => ”,
‘feed_image’ => ”,
‘exclude’ => ”,
‘exclude_tree’ => ”,
‘include’ => ”,
‘hierarchical’ => 1,
‘title_li’ => __( ‘Categories’ ),
‘show_option_none’ => __(‘No categories’),
‘number’ => null,
‘echo’ => 1,
‘depth’ => 0,
‘current_category’ => 0,
‘pad_counts’ => 0,
‘taxonomy’ => ‘product_cat’,
‘walker’ => null ); ?>
<?php $catTerms = get_terms(‘product_cat’, array(‘hide_empty’ => 0, ‘orderby’ => ‘ASC’)); ?>
<?php foreach($catTerms as $catTerm) : ?>
<a href=”?product_cat=<?php echo $catTerm->slug; ?>”><?php echo $catTerm->name; ?></a><br/>
<?php echo $catTerm->description ; ?>
<?php
$thumbnail_id = get_woocommerce_term_meta( $catTerm->term_id, ‘thumbnail_id’, true );
// get the image URL
$image = wp_get_attachment_url( $thumbnail_id );
// print the IMG HTML
echo ‘<img src=”‘.$image.'” alt=”” width=”300″ height=”208″ />’; ?>
<?php echo $catTerm->term_id;?>
<?php endforeach; ?>