A coupon must be restricted with a vendor product.
-
I’m trying to set up coupons on this website but keep getting this error.
I’ve tried the code add_filter( ‘dokan_ensure_vendor_coupon’, ‘__return_false’ );
Which I’ve added to my themes functions.php file. This did not fix the issue.I’ve seen another about adding code to a file in Dokan-Lite. My version doesn’t have this file. – open dokan-lite/includes/class-order-manager.php file and comment out this line – add_filter( ‘woocommerce_coupon_is_valid’, array( $this, ‘ensure_vendor_coupon’ ), 10, 3 );
class-order-manager.php doesn’t exist.
What do I need to do to add get the coupon working?
The page I need help with: [log in to see the link]
- The topic ‘A coupon must be restricted with a vendor product.’ is closed to new replies.