I am trying your plugin and I can understand why when I apply the coupon I always get the following error message: Sorry, this coupon is not applicable to selected products.
The only thing I did is set the Discount type to Percentage and the Coupon amount to 10. All other settings have not been touched.
What could be wrong with the products themselves ?
I have changed the code as specified and it works fine. Thank you.
For a quick fix, find the file plugins/perfect-woocommerce-brands/classes/admin/class-pwb-coupon.php
and replace
if ( empty( $selected_brands ) ) return;
with:
if ( empty( $selected_brands ) ) return $valid;