• Resolved tabliq

    (@omidch)


    how to:
    1- remove More Products tab seller on product page
    2- remove Seller info tab on product page
    3- remove seller button on WC dashboard
    4- Disable registration as a seller in WC registration

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello @omidch,

    Thanks for your thread. Your requirements are not possible by default. You need to modify Dokan plugin to achieve all of mentioned. We can only help you with the default functionality related queries/issues of Dokan plugin.

    Thread Starter tabliq

    (@omidch)

    Hi @nazmulhassann20
    Thanks for your reply
    But these are some of the things that must be included in plugin features.
    Strangely enough, there is no such thing in the plugin.
    I even asked through [email protected] and didn’t get the right answer.
    It would be better to publish the solution to these (problems) on the blog. As a solution to remove the tab for seller information you put on your site.

    Anyway I’ll publish later on finding the solution here

    Thread Starter tabliq

    (@omidch)

    @nazmulhassann20

    Paste the below code on your functions.php file:

    – for remove More Products tab seller on product page in dokan plugin:

    add_filter( 'woocommerce_product_tabs', 'wcs_woo_remove_more_seller_product_tab', 98 );
        function wcs_woo_remove_more_seller_product_tab($tabs) {
        unset($tabs['more_seller_product']);
        return $tabs;
    }

    – for remove Seller info tab on product page in dokan plugin:

    add_filter( 'woocommerce_product_tabs', 'dokan_remove_seller_info_tab', 50 );
    function dokan_remove_seller_info_tab( $array ) {
      unset( $array['seller'] );
      return $array;
    }

    – for remove seller button on WC dashboard in dokan plugin:
    remove_action( 'woocommerce_after_my_account', array( Dokan_Pro::init(), 'dokan_account_migration_button' ) );

    – for disable registration as a seller in WC registration in dokan plugin:
    remove_action( 'woocommerce_register_form', 'dokan_seller_reg_form_fields' );

    • This reply was modified 5 years, 4 months ago by tabliq.

    Thank you so much @omidch
    This is information I was seeking as well.

    Thread Starter tabliq

    (@omidch)

    @konikodes and for remove seller name on cart page:
    dokan lite > includes > wc-template.php > It can be edited or deleted at the beginning of this file.

    @omidch Thank you so much!

    @omidch, Thank you very much for sharing your solution. I have noted and will definitely share with others ??

    Thank you very much for your solution!!!

    Do you know how I can remove the ‘Vendor: xxxx’ line that shows in each Item listed in the Cart?

    Thanks!!

    Hello @oriondesigns ,

    Please try the below code to remove the vendor details from the cart items –

    // Remove the default Vendor name
    remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10 );

    Thank you.

    Hello,

    The ‘Vendor Details’ are removed, however the Prefix: “Vendor:” is showing.

    How can I remove this too?

    Thanks!

    @oriondesigns with a little bit of CSS you can fix that

    @omidch thanks man!!

    Can anybody please tell me the “little CSS” being talked about to remove the “Vendor: ” prefix. I went to wc-template and removed the actual name of the vendor but the label isnt going despite 2-day struggle :-p

    Yes i would like to know that to if anyone can help us with css to remove vendor tab in product page

    Thanks

    The Dokan I am working on has been altered to a point that I′m not sure if our code will be the same, but for whoever is in need of the CSS fix, please try adding this to the bottom of your ‘…/wp-content/themes/my-current-theme/style.css’:

    tr.cart_item dl.variation {
        display: none;
    }

    In case it does not work, I′m sorry. But I hope it does!

    • This reply was modified 3 years, 8 months ago by Rafa Carvalhido. Reason: grammar - missing letter
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘how to remove more products tab and seller info tab in dokan plugin’ is closed to new replies.