Woocommerce filter function not updating

I have a similar code that is working fine for me. Try putting your ids into an array like so:

$cat_args['exclude'] = array('12, 13');