$store_cat_id) {
$thumbnail_id = get_term_meta( $key, 'thumbnail_id', true );
$images = wp_get_attachment_url( $thumbnail_id );
$image = wp_get_attachment_image_src($thumbnail_id, 'buzzstore-cat-image', true);
$term = get_term_by( 'id', $key, 'product_cat');
if ( $term && ! is_wp_error( $term ) ) {
$term_link = get_term_link($term);
$term_name = $term->name;
if ( $term->count > 0 )
$sub_count = apply_filters( 'woocommerce_subcategory_count_html', ' ' . $term->count . ' '.esc_html__('Products','buzzstore').'', $term);
}else{
$term_link = '#';
$term_name = esc_html__('Category','buzzstore');
$sub_count = '0 '.esc_html__('Product','buzzstore');
}
$no_img = esc_url( get_template_directory_uri().'/assets/images/noimage.png' );
?>