1) Add following code to functions.php (insert it at the very bottom):
/**
* This code should be added to functions.php of your theme
**/
add_filter( 'pre_get_posts', 'custom_pre_get_posts_query' );
function custom_pre_get_posts_query( $q ) {
if ( ! $q->is_main_query() ) return;
if ( ! $q->is_post_type_archive() ) return;
$q->set( 'tax_query', array(array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => array( 'tshirts' ),
'operator' => 'NOT IN'
)));
remove_filter( 'pre_get_posts', 'custom_pre_get_posts_query' );
}
and instead of "tshirts" enter your custom category slug.
2) Since the latest Abundance version (Abundance 1.5) the order is determined by your woocommerce settings. Following two lines in abundance\includes\helper-templates.php set the default product order:
$order = get_option('woocommerce_default_catalog_orderby');
if(!$order) $order = "menu_order";
You can change the catalog order on the woocommerce settings page or you can "hardcode" the order by replacing the code above with:
$order = "menu_order";
(you can use other order parameters too). In addition you can replace following code:
'orderby' => $order,
'order' => 'desc',
with:
'orderby' => $order,
'order' => 'asc',
`
if you prefer an ascending order.