count; $posts_per_page = ( $term_count > 4 ) ? 4 : $term_count; $args = array( 'post_type' => 'product', 'posts_per_page' => $posts_per_page, 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'terms' => $cat_one_select, 'include_children' => false, ), ), ); $qry_cat_one = new WP_Query( $args ); if( $qry_cat_one->have_posts() ){ ?>
' . esc_html( $sec_title ) . ''; if( $sub_title ) echo '
' . esc_html( $sub_title ) . '
'; ?>
'; ?>
' . esc_html( $feat_title ) . ''; if( $feat_subtitle ) echo '
' . esc_html( $feat_subtitle ) . '
'; ?>
have_posts() ){ $qry_cat_one->the_post(); global $product; ?>
' . esc_html__( 'Sold Out', 'blossom-shop' ) . ''; }else{ woocommerce_show_product_sale_flash(); } ?> ', '' ); echo wc_get_rating_html( $product->get_average_rating() ); woocommerce_template_single_price(); //price ?>