Home Forums Theme Support Dokan Turn off coupons and downloadable products

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sk 5 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20084

    Artem
    Member
    Post count: 24

    I turn off the coupons in WooCommerce settings, but coupons not disappear in frontend.
    Also, i want to turn off the downloadable ptoducts and can't too : (

    #20202

    Sk
    Moderator
    Post count: 371

    Hello Artem,

    To make coupons disappear from front-end you could write the following code at the bottom of `dokan/functions.php' file

    add_filter( 'dokan_get_dashboard_nav', 'dashboard_nav', 10, 1);
    function dashboard_nav($nav) {
        unset($nav['coupon']);
        return( $nav );
    }
    

    thank you.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Turn off coupons and downloadable products’ is closed to new replies.