• Resolved myntillae

    (@myntillae)


    Hello,

    I saw on some other older threads to edit this code in the plugin files in order to enable a sitewide coupon code:

    Now, if you need this feature then please 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 );

    However, I’m not sure if it’s the latest version or what, but I cannot find this PHP file. Is this because we also have the Pro version installed? Or could you guide me to where it is now?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @myntillae ,

    Thanks for reaching out.

    You are trying to enable admin coupon from WooCommerce, is that right?

    Then you can easily do that by using this code in your theme’s functions.php file –

    //Aloowing WooCommerce coupon -
    add_filter( 'dokan_ensure_vendor_coupon', '__return_false' );

    You do not need to modify any core files again.

    If you wanted to know something else, please let me know in detail.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Sitewide coupon code error’ is closed to new replies.