Hide Shipping

This topic contains 3 reply and 2 voices, and was last updated by Nayem 9 years, 1 month ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
March 12, 2015 at 4:53 pm 38990
Nayem Hi there How do i hide the sidebar menu items? I dont want to show shipping. What file can I edit to do this?
March 12, 2015 at 5:00 pm 38994
Nayem Nayem

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 🙂

March 12, 2015 at 6:03 pm 38997
Johnny Johnny

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!!!

March 12, 2015 at 6:08 pm 38999
Nayem Nayem

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