$store_cat_id) {
$thumbnail_id = get_woocommerce_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 . ' '.__('Products','buzzstore').'', $term);
}else{
$term_link = '#';
$term_name = __('Category','buzzstore');
$sub_count = '0 '.__('Product','buzzstore');
}
$no_img = esc_url('https://placeholdit.imgix.net/~text?txtsize=33&txt=275%C3%97370&w=275&h=370');
?>