Home Forums Theme Support Dokan Remove Shipping from product dashboard

This topic is: not resolved

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

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

    Donovan
    Member
    Post count: 27

    Hello, i need to remove shipping from the product dashboard, I looked in template tag and did not see this option. Can you please point me in the right direction?

    #64694

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Do you want to remove that tab from single product page or from seller dashbaord?

    #64778

    Donovan
    Member
    Post count: 27

    I want to remove it from both

    #64813

    Nayem
    Moderator
    Post count: 6480
    add_filter( 'dokan_product_data_tabs', 'remove_shipping_menu');
    
        function remove_shipping_menu( $dokan_product_data_tabs){
    
            unset($dokan_product_data_tabs['shipping']);
    
            return $dokan_product_data_tabs;
    }
    
    /* Remove shippng tab from single product page*/
    
    remove_action( 'woocommerce_product_tabs' ,'register_product_tab');
    
    function remove_product_shipping_tab($tabs){
    
        unset($tabs['shipping']);
        return $tabs;
    }
    
    add_action ( 'woocommerce_product_tabs' , 'remove_product_shipping_tab');

    Put those code in theme function.php file.

    Thanks.

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

The topic ‘Remove Shipping from product dashboard’ is closed to new replies.