Hi Joe,
As far as I know WooCommerce coupons doesn’t allow for a wholesale exclusion of subscription products. It is possible to exclude specific products, which could be a list of all of your subscription products.
To do this, you’re right, I’d need to add a filter or some additional settings to the plugin.
I’m going to push out an update with a new filter that will let you modify the existing parameters that are passed to the function that creates the discount code. Then, I think you should be able to just add a exclude_product_ids
array in your own function. Something like this:
add_filter( 'sdwoo_discount_args', 'your_function' );
function your_function( $discount_args ){
$discount_args['exclude_product_ids'] = array( 1, 2, 3, 4, 5 );
return $discount_args;
}
Replace the 1, 2, 3, 4, 5 with a comma separated list of your subscription product IDs and that should do what you’re looking for.
Version 1.3 should be out shortly. Let me know if you need anything else.