$args = array(
'posts_per_page' => -1,
'post_type' => 'product',
'orderby' => 'title',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'SlugName',
'include_children' => 0
)
)
);
$the_query = new WP_Query( $args );