Turn off coupons and downloadable products

This topic contains 1 reply and 2 voices, and was last updated by Sk 10 years, 6 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
May 7, 2014 at 9:30 pm 20084
Sk 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 : (
May 9, 2014 at 5:15 pm 20202
Sk Sk

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 1 Posts - 1 through 1 (of 1 total)