• Resolved yasko

    (@yasko)


    Hi, Thank you for quick support.

    1 ) I dont use Tracking Number Button. Please give a simple remove function code to remove it.
    Please dont suggest different pages because I am not developer. Please give ready code. Really I dont want it. Thank you

    2) I can remove withdraw menu but I can not remove Payment menu. I need to remove payment menu. What is problem. Please Fix the Codes. I hope you will support me. I am looking forward your reply.

    The codes

    add_filter( ‘dokan_get_dashboard_nav’, ‘prefix_dokan_add_seller_nav’ );
    function prefix_dokan_add_seller_nav( $urls ) {
    unset( $urls[‘withdraw’] );
    unset( $urls[‘payment’] );
    return $urls;
    }

    Thank you so much!
    Have a great Day !

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter yasko

    (@yasko)

    I have 1 very important question, too.

    I want to remove ‘This is a downloadable product’ function.

    Please help me!

    Thank you so much!
    Have a nice day!

    Plugin Author weDevs

    (@wedevs)

    Hello yasko,

    The payment menu is not under the variable $urls. It is under $sub_settins. So, you can check this code-

    add_filter( ‘dokan_get_dashboard_settings_nav’,’wlrs_dashbaord_settings_nav’,11);

    function wlrs_dashbaord_settings_nav($sub_settins){

    $menu = dokan_get_option(‘remove_tab’,’dokan_selling’);
    unset($sub_settins[‘payment’]);
    return $sub_settins;

    }

    As we do not provide custom development support for that reason, we are unable to provide more support to modify the plugin or any functionality. In this forum, you can ask only about the default feature ??

    Thread Starter yasko

    (@yasko)

    Hi, Thank you for this code but Payment code not work ! It dont remove for this code. There is a problem. You can refresh the code please ?

    I know, everybody not provide custom development ?? But I dont want a development only remove function because I really need it. Any way … Thank you so so much!

    Please refresh the payment menu codes.
    I will wait again..

    I will try ask only default featues expect for somemites ??
    Thank you so so much! Have a nice day!

    Plugin Author weDevs

    (@wedevs)

    You can replace the variable sub_settins to settings_sub. It should work fine ??

    Thread Starter yasko

    (@yasko)

    I tried but no work fine :)) Please can you look below codes again and find my error ? What is problem ?
    Thank you so much!
    Have a nice day!

    add_filter( ‘dokan_get_dashboard_settings_nav’,’wlrs_dashbaord_settings_nav’,11);

    function wlrs_dashbaord_settings_nav($settings_sub){

    $menu = dokan_get_option(‘remove_tab’,’dokan_selling’);
    unset($settings_sub[‘payment’]);
    return $settings_sub;

    }

    Plugin Author weDevs

    (@wedevs)

    @yasko Here is the updated code-

    
    add_filter( 'dokan_get_dashboard_nav','wlr_dashbaord_nav', 11);
    
    function wlr_dashbaord_nav($urls){
    
    unset($urls['withdraw']);
    
    return $urls;
    }
    
    add_filter( 'dokan_get_dashboard_settings_nav','wlr_dashbaord_settings_nav');
    
    function wlr_dashbaord_settings_nav($settings_sub){
    
    unset($settings_sub['payment']);
    
    return $settings_sub;
    
    }
    
    
    Thread Starter yasko

    (@yasko)

    Really thank you very very much. But you answer is very late and I research CSS Display function and I learn some css rules. Really I need it. And I tried below codes myself and It work perfectly in my website. it is simple.
    Thank you so so much for your effor !!!

    .payment {
    display: none ;
    }

    Thanks!
    Have a nice day !

    Thread Starter yasko

    (@yasko)

    And I find this codes on internet.. I asked you that, too… Someone shared this codes for downloadble product remove.

    label[for=_downloadable] {
    display: none !important;
    }

    Have a nice day !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I have 2 question’ is closed to new replies.