Home Forums Theme Support Dokan Hide Shipping

This topic is: resolved

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38990

    Johnny
    Member
    Post count: 6

    Hi there

    How do i hide the sidebar menu items? I dont want to show shipping.
    What file can I edit to do this?

    #38994

    Nayem
    Moderator
    Post count: 6480

    Please open Dokan plugin/includes/template-tags.php file. In this file you will get those code in line number 333-342

    $dokan_shipping_option = get_option( 'woocommerce_dokan_product_shipping_settings' );
        $enable_shipping = ( isset( $dokan_shipping_option['enabled'] ) ) ? $dokan_shipping_option['enabled'] : 'yes';
    
        if ( $enable_shipping == 'yes' ) {
            $urls['shipping'] = array(
                'title' => __( 'Shipping', 'dokan'),
                'icon'  => '<i class="fa fa-truck"></i>',
                'url'   => dokan_get_navigation_url( 'shipping' )
            );
    }

    You have to comment out those line to disable shipping menu from the dashboard menu.

    Thank you ๐Ÿ™‚

    #38997

    Johnny
    Member
    Post count: 6

    Awesome thank you it worked. Just for other users that read this. It is in the “includes” folder not templates folder.

    Thank you for the fast support!!!

    #38999

    Nayem
    Moderator
    Post count: 6480

    Sorry for the wrong folder name. But i am very glad to know that that worked. I am marking this topic as resolved.

    Thank you ๐Ÿ™‚

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

The topic ‘Hide Shipping’ is closed to new replies.