Hide shop link and logo from a certain vendor group

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Hide shop link and logo from a certain vendor group

Viewing 11 reply threads
  • Author
    Posts
    • #77551
      nict
      Participant

      I have a few vendor groups with different capabilities. I would like to hide the logo and the shop link of a certain vendor group so that that vendor group cannot click through to their shop/store page. How can this be done?

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

      HI,

      Hope you have WCFM – Group & Staff addon (http://wclovers.com/product/woocommerce-frontend-manager-groups-staffs/).

      Please disable “Show Sold by” for those groups – https://ibb.co/6n0wMVt

      Thank You

    • #77816
      nict
      Participant

      Hi hi. A bit of a misunderstanding. I dont mean the ‘sold by’ link displayed on the products, I am referring to the store logo and link that is on the vendor’s wcfm dashboard, right above the menu. Have a look at the image I have attached in my first post. I need to hide that from a certain vendor group please.

    • #77969
      WCFM Forum
      Member

      https://wclovers.com/wp-content/uploads/2019/08/hide_shop_link.png – understand. Well, there is no capability setting for this.

      This will possible using custom coding!

      Thank You

      • #78396
        nict
        Participant

        If you possibly have a custom code snippet that I can use that would be great 🙂

    • #77975
      nict
      Participant

      Do you perhaps please have a snippet I can use for that then?

    • #78787
      WCFM Forum
      Member

      HI,

      Use this CSS for the purpose-

      .wcfm_menu_logo h4{display:none!important;}

      Thank You

      • #78810
        nict
        Participant

        Thanks man but I would like to hide it from a certain vendor group, not from all vendors. How can that be achieved?

    • #78997
      WCFM Forum
      Member

      This will possible using custom coding!

      – That’s why I told you, it will require custom coding.

      Between, what will be condition for hiding this for certain vendor groups?

      Thank You

      • #79024
        nict
        Participant

        Ah ok I see you mean extra custom coding and not just a short code snippet.
        The reason why I would like to hide it for certain vendors groups is because I am using the Groups & Staff add-on to have different groups with different capabilities setup. And for the one group I want them to easily be able to see and navigate to their store page. But for the other group I actually don’t want them to be able to have a store page, or at the very least i don’t want them to be able to easily find their own store page by using the link on their dashboard.

    • #79162
      WCFM Forum
      Member

      OK, that make sense. So, hope you have disabled “Show Sold By” option for those group capabilities? https://ibb.co/MhZbZQs

      If so, then can implement this on the basis of this condition!

      Thank You

    • #79290
      nict
      Participant

      I have disabled the ‘sold by’ option for that vendor group but the linked logo and link to their store page still displays in their dashboard. See attachment

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

      Hi,

      Please add this code to your site –

      add_filter( 'wcfm_store_logo', function( $store_logo ) {
      	global $WCFM, $WCFMmp;
      	
      	if( !$WCFMmp->wcfmmp_vendor->is_vendor_sold_by( $WCFMmp->vendor_id ) ) {
      		$store_logo = '';
      	}
      	return $store_logo;
      }, 50 );
      add_filter( 'wcfm_store_name', function( $store_name ) {
      	global $WCFM, $WCFMmp;
      	
      	if( !$WCFMmp->wcfmmp_vendor->is_vendor_sold_by( $WCFMmp->vendor_id ) ) {
      		$store_name = '';
      	}
      	return $store_name;
      }, 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

    • #79808
      nict
      Participant

      Ah great, thank you, that makes it work.

    • #79968
      WCFM Forum
      Member

      You are always welcome 🙂

      Let me know if there’s anything else we can help you with.
      Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

Viewing 11 reply threads
  • The topic ‘Hide shop link and logo from a certain vendor group’ is closed to new replies.