Enabling admin coupons
-
Hello,
I’m using Dokan lite, and the admin coupons don’t work.
Reading previous support posts here, I found that if I add the following snippet to the functions file, it should work.
add_filter( 'dokan_ensure_vendor_coupon', '__return_false' );However, there wasn’t a change.
I tried installing code snippets as a secondary option. Added the same filter code there as well, but the admin coupons still didn’t work.
If a coupon is applied by a customer, the customer sees/gets the message: “A coupon must be restricted with a vendor product”
If I restrict the coupon to a specific product only (in the Usage Restrictions tab of the product), and then the customer applies the coupon, the message is “Coupon is not valid.”
Finally, reading more support posts I came across a post that suggested commenting out the following line:
add_filter( ‘woocommerce_coupon_is_valid’, array( $this, ‘ensure_vendor_coupon’ ), 10, 3 );in the following file:
dokan-lite/includes/class-order-manager.php fileBut that file isn’t there.
Help; I urgently need to get admin coupons working.
Regards,
Ihsan
The topic ‘Enabling admin coupons’ is closed to new replies.