Conflict with Group Coupons
-
It appears that there is a conflict between Perfect Brands and the Group Coupon plugin. When Perfect Brands is active, the Group Coupons restrictions appear to be ignored. When Perfect Brands is deactivated the restrictions work properly. You can see a video example here: https://primalrc.tinytake.com/msc/ODEzMjc1Nl8yMTMxODAzNA
Cursory testing on our end points to the conflict occurring between the “is_valid_for_brand” and “is_valid_for_exclude_brand” callback functions in perfect-woocommerce-brands/lib/admin/class-coupon.php (lines 78 and 138) and the “woocommerce_coupon_is_valid” in woocommerce-group-coupons/lib/core/class-woocommerce-group-coupon-roles.php (line 54).Commenting out the Perfect Brands functions but otherwise leaving the plugin active appears to fix the conflict, but obviously removes functionality from the Perfect Brands coupon restrictions.
We’re not sure what the exact issue is, but suspect that it has something to do with the $valid variable. It would be very helpful to us to get this issue fixed because we require coupon restrictions that use Brands and groups in tandem.
Thank you
- The topic ‘Conflict with Group Coupons’ is closed to new replies.