Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Hide shop link and logo from a certain vendor group
- This topic has 14 replies, 2 voices, and was last updated 5 years, 3 months ago by WCFM Forum.
- AuthorPosts
- August 20, 2019 at 4:07 pm #77551
- August 22, 2019 at 4:07 pm #77807WCFM ForumMember
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
- August 22, 2019 at 4:29 pm #77816nictParticipant
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.
- August 23, 2019 at 7:48 am #77969WCFM ForumMember
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
- August 23, 2019 at 7:59 am #77975nictParticipant
Do you perhaps please have a snippet I can use for that then?
- August 28, 2019 at 4:40 pm #78787WCFM ForumMember
HI,
Use this CSS for the purpose-
.wcfm_menu_logo h4{display:none!important;}
Thank You
- August 29, 2019 at 3:49 pm #78997WCFM ForumMember
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
- August 29, 2019 at 5:21 pm #79024nictParticipant
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.
- August 30, 2019 at 7:18 am #79162WCFM ForumMember
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
- August 31, 2019 at 5:52 am #79290
- September 2, 2019 at 12:45 pm #79615WCFM ForumMember
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
- September 3, 2019 at 1:04 pm #79808nictParticipant
Ah great, thank you, that makes it work.
- September 4, 2019 at 9:11 am #79968WCFM ForumMember
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.
- AuthorPosts
- The topic ‘Hide shop link and logo from a certain vendor group’ is closed to new replies.