Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Is there a way to hide the 'virtual' checkbox from the simple product?
- This topic has 3 replies, 3 voices, and was last updated 4 years, 5 months ago by WCFM Forum.
- AuthorPosts
- November 10, 2019 at 7:41 pm #91686sean.leonardParticipant
Not sure if this page is still relevant:
https://wclovers.com/knowledgebase/wcfm-product-manager/It shows options related to restricting what product options vendors see. I cannot find these options. Is there a way to hide the ‘virtual’ option from the products?
- November 11, 2019 at 11:36 am #91768Sarmistha ChakrabortyKeymaster
Hello,
In admin WCFM dashboard – “Capability” tab you will find the option.
Thanks.
Attachments:
You must be logged in to view attached files. - November 11, 2019 at 9:42 pm #91858sean.leonardParticipant
Am i missing something in the install? My capability tab looks different
Attachments:
You must be logged in to view attached files. - November 12, 2019 at 12:08 pm #91934WCFM ForumKeymaster
Well, I think you are using only WCFM Free version. Those capability options comes with WCFM Ultimate.
You may use this code to hide “virtual checkbox” –
add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) { if( isset( $general_fields['is_virtual'] ) ) { $general_fields['is_virtual']['class'] = 'wcfm_custom_hide'; $general_fields['is_virtual']['desc_class'] = 'wcfm_custom_hide'; } return $general_fields; }, 50, 3 );
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/
- AuthorPosts
- The topic ‘Is there a way to hide the 'virtual' checkbox from the simple product?’ is closed to new replies.