Home Forums Plugin Support Others not display menu choices

This topic contains 15 replies, has 3 voices, and was last updated by  Nayem 3 years, 12 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #52450

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    I would not view shipping and withdraw the menu which is code for not view these two choices?

    #52507

    towhid
    Participant
    Post count: 4505

    Hello,

    I did not understand your question clearly. Can you please send me a screenshot with proper description.

    Thanks

    #52520

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    there is no problem … I would like to remove from the menu shipping and withdraw

    #52522

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    error

    #52523

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    I added 3 choices then as I removed the code:

    unset ($ urls [‘withdraw’]);
    unset ($ urls [‘shipping’]);

    withdraw do not see more then ok
    shipping continues to be something wrong in the code?

    /**
     * Insert new URL's to the dashboard navigation bar
     *
     * @param  array  $urls 
     *
     * @return array  
     */
    function prefix_dokan_add_seller_nav( $urls ) {
        
        $urls['profile'] = array(
            'title' => __( 'Profile Settings', 'dokan'),
            'icon'  => '<i class="fa fa-cog"></i>',
            'url'   => 'http://waytogoon.com/my-account/edit-address/fatturazione/'
        );
    	$urls['account'] = array(
            'title' => __( 'Edit Account', 'dokan'),
            'icon'  => '<i class="fa fa-cog"></i>',
            'url'   => 'http://waytogoon.com/my-account/edit-account/'
        );
    	$urls['tickets'] = array(
            'title' => __( 'Tickets Dashboard', 'dokan'),
            'icon'  => '<i class="fa fa-cog"></i>',
            'url'   => 'http://waytogoon.com/support-ticket-controlpanel/ticket/addticket'
        );
    	
    	  unset( $urls['withdraw'] );
    	  unset( $urls['shipping'] );
    
        return $urls;
    }
    
    add_filter( 'dokan_get_dashboard_nav', 'prefix_dokan_add_seller_nav' );
    #52532

    towhid
    Participant
    Post count: 4505

    Hello,

    To remove those menu please insert these code in your child theme function.php file-

    add_filter( 'dokan_get_dashboard_nav', 'prefix_dokan_add_seller_nav' );
    function prefix_dokan_add_seller_nav( $urls ) {
    	  
    	  unset( $urls['withdraw'] );
    
        return $urls;
    }
    
    add_filter( 'dokan_get_dashboard_settings_nav', 'remove_sub_tab' );
    
    function remove_sub_tab($settings_sub){
    
        unset($settings_sub['shipping']);
        return $settings_sub;
    
    }

    Thanks

    #52539

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    perfect thanks!
    I have another problem … I created 2 custum field one to request the bill and the other for the vat in the checkout .. these 2 field the dokan not copy them into suborders, how can I do to get them back in the suborders? They are very important because the invoice is made by the sellers ..

    #52541

    towhid
    Participant
    Post count: 4505

    Hello,

    You are talking about the customization of the plugin. But I am really sorry to say that we do not provide any customization services. It will be better if you hire a developer.

    Thanks

    #52542

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    all I need to know which is the file that handles the order and divides into suborders …
    and the same thing for the file in the mail

    #52544

    towhid
    Participant
    Post count: 4505

    Hello,

    Please open plugins/dokan-plugin/templates/orders/order-details.php. In this “order-details.php” is calculate order related funciton.

    Thanks

    #52545

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    This is the file that displays the sub orders, I need to know which is the file that creates the sub orders

    #52546

    towhid
    Participant
    Post count: 4505

    Hello,

    The Developer is not available today. They will be available from tomorrow. After their coming back, I will let you know

    Thanks

    #52547

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    ok Thanks

    #52588

    towhid
    Participant
    Post count: 4505

    Hello,

    All order related functions are managed by order-functions.php.

    Please navigate to plugins/dokan-plugin/includes/order-functions.php

    Thanks

    #52672

    WAYTOGOON SL – CIF B76648989
    Member
    Post count: 68

    thanks !, which updates have been made in version 2.3?

Viewing 15 posts - 1 through 15 (of 16 total)

The topic ‘not display menu choices’ is closed to new replies.