I added the following code from single-wpcproduct.php to the wpc-catalogue.php after this code:
\\$return_string .= ‘<div class=”wp-catalogue-breadcrumb”> All Products >> ‘.$tname.’ ‘ . $pname . ‘</div>’;\\
New code:
\\global $post;
$terms1 = get_the_terms($post->id, ‘wpccategories’);
if($terms1 !=null || $term1 !=null){
foreach( $terms1 as $term1 ){
$slug = $term1->slug;
$term_id = $term1->term_id;
};
}
global $wpdb;
$args = array(
‘orderby’ => ‘term_order’,
‘order’ => ‘ASC’,
‘hide_empty’ => true,
);
$terms = get_terms(‘wpccategories’,$args);
$count = count($terms);\\
Hope that helps.