I\'m using WP_Query for Woocommerce products in attempt to query products in a particular category. This is the syntax that worked for me -
WP_Query
$args =
From the WordPress codex on WP_Query for Category Parameters:
equivalent of OR
$args = array( 'product_cat' => 'category-slug1,category-slug2' ) );
equivalent of AND
$args = array( 'product_cat' => 'category-slug1+category-slug2' );
e.g.
$query = new WP_Query( $args );