Removing Settings Tabs on Vendor's Dashboard

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Feature Request Removing Settings Tabs on Vendor's Dashboard

Tagged: 

This topic contains 6 replies, has 4 voices, and was last updated by Avatar Sheila 6 days, 15 hours ago.

  • Author
    Posts
  • #76282
    Avatar
    puppycircles
    Participant

    Is there a way to remove the “payment” and “store policies” tabs from the Store Settings for all vendors’ dashboard settings. Vendors will only use my site to display a catalog of products. I do not want them to be able to set payments on my site. See attached screen shot

    Thanks!

    Attachments:
    You must be logged in to view attached files.
  • #76362
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Sure, please set this OFF from capability setting. https://ibb.co/MP7KzxC

    Well, hope you have WCFM Ultimate, otherwise you will not see these capability options.

    Thank You

  • #111556
    Avatar
    Sheila
    Participant

    Hi! I hope you’re okay. I’d like to make an inquiry on the same subject.

    I just want it to look paid for.
    I don’t want the store tab to show.

    But when I leave only payments active you also see the store settings. And I don’t want to show that.

    Try to only activate payments and not store settings, and that hides them both.

    Could you please help me?
    Thank you

  • #111816

    Hello,

    Can you share the images again. Your attached images were not uploaded.

    Thanks.

  • #113376
    Avatar
    Sheila
    Participant

    Hi! thank you for your response, i have attached in pdf the images of my request for help.

    Thank you

    Attachments:
    You must be logged in to view attached files.
  • #114835
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Add this code snippet to your site –

    add_filter( 'wcfm_setting_default_tab', function( $default_tab ) {
    	if( wcfm_is_vendor() ) {
    		$default_tab = 'wcfm_settings_form_payment_head';
    	}
    	return $default_tab;
    }, 50 );
    add_action( 'after_wcfm_marketplace_settings', function( $user_id ) {
    	if( wcfm_is_vendor() ) {
    		?>
    		<style>
    		#wcfm_settings_dashboard_head{display:none}
    		</style>
    		<script>
    		jQuery(document).ready(function($) {
    			$('#wcfm_settings_dashboard_head').remove();
    		});
    		</script>
    		<?php
    	}
    }, 50 );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin –¬†https://wordpress.org/plugins/code-snippets/

    Thank You

  • #114855
    Avatar
    Sheila
    Participant

    Thank you for your support. I have placed it in code snippets, but I still can’t see the result because since I activate the WPML language plugin the marketplace stopped working the menu links, everything goes to the control panel, they don’t leave there and nothing can be done.

    I’m waiting for the support help (that I gave them administrative access to the wordpress to help me with the correct configuration) to make the marketplace work again.

    As soon as I can see the result of the code you have given me, I will write to you again.

    Thanks

You must be logged in to reply to this topic.