Home Forums Theme Support Dokan Shipping menu item not disabled even though shipping disable in Woocommerce

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56579

    Simon
    Member
    Post count: 58

    Using:
    Dokan Plugin 2.3
    Dokan Theme 2.2

    The below code seems to say that if a shipping option is not selected then it shouldn't show the menu item, but it's still showing on the /dashboard/settings/ page menu. Please investigate.

    Code from template-tags.php

        $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' ) {
            $settings_sub['shipping'] = array(
                'title' => __( 'Shipping', 'dokan'),
                'icon'  => '<i class="fa fa-truck"></i>',
                'url'   => dokan_get_navigation_url( 'settings/shipping' )
            );
        }
    #56600

    Nayem
    Moderator
    Post count: 6480

    Hello,

    This shipping feature is built in Dokan. You can not hide the shipping menu from anywhere. If you want to hide it for all seller then you have to hide this from the code.

    Thanks.

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

The topic ‘Shipping menu item not disabled even though shipping disable in Woocommerce’ is closed to new replies.