'product',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'term_id',
'terms' => $tab_category_id // Ajax Category Id
),
array(
'taxonomy' => 'product_visibility',
'field' => 'name',
'terms' => 'exclude-from-catalog',
'operator' => 'NOT IN'
)
),
'posts_per_page' => $tab_product_count
);
$query = new WP_Query($product_args);
$total_products = ($query->post_count)-1;
if($query->have_posts()) { while($query->have_posts()) { $query->the_post();
?>