I am using "Get a coupon code dynamically from WooCommerce in a custom function" answer code, which ensures that specific products requires a coupon code in order to complete the purchase. Really awesome.
However I also used Woo Smart Coupons to generate coupons in bulk. I notice that even though I select the option "force specific items" this option in not checked in the coupons that are generated.
And thus the checkout doesn't work - when the products require a coupon code. I need to have this option checked.
How can I ensure that this option is checked by default, rather than have it selected when generating?